Refactoring which will help with future changes (A47)
Change-Id: Ibc2d28f9f95966f77d4d7bdf9ae4688baaed5989
This commit is contained in:
parent
e9a86e2cdb
commit
7b40c68277
1 changed files with 5 additions and 2 deletions
|
@ -1708,8 +1708,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mWordComposer.isComposingWord()) {
|
if (!mWordComposer.isComposingWord()) {
|
||||||
// This is dead code: we can't come here with an empty word composer.
|
// We are never called with an empty word composer, but if because of a bug
|
||||||
setPunctuationSuggestions();
|
// we are, what we should do here is just call updateBigramsPredictions. This will
|
||||||
|
// update the predictions if the "predict next word" option is on, or display
|
||||||
|
// punctuation signs if it's off.
|
||||||
|
updateBigramPredictions();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue