Cleanup unused code
The Italian dictionary has been amended to contain words that include apostrophes, and accordingly the apostrophe is now excluded from word separators in Italian. This code was only used for Italian, and in the general case it does the wrong thing; it was only needed by limitations of the old dictionary. Bug: 6929108 Change-Id: I7ff4615e01899a1cebed2c4c51679cd0746740fe
This commit is contained in:
parent
1644a3c732
commit
8ee4b35c70
1 changed files with 1 additions and 5 deletions
|
@ -1619,11 +1619,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
boolean didAutoCorrect = false;
|
||||
// Handle separator
|
||||
if (mWordComposer.isComposingWord()) {
|
||||
// In certain languages where single quote is a separator, it's better
|
||||
// not to auto correct, but accept the typed word. For instance,
|
||||
// in Italian dov' should not be expanded to dove' because the elision
|
||||
// requires the last vowel to be removed.
|
||||
if (mCurrentSettings.mCorrectionEnabled && primaryCode != Keyboard.CODE_SINGLE_QUOTE) {
|
||||
if (mCurrentSettings.mCorrectionEnabled) {
|
||||
commitCurrentAutoCorrection(primaryCode);
|
||||
didAutoCorrect = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue