Refactoring which will help with future changes (A47)

Change-Id: Ibc2d28f9f95966f77d4d7bdf9ae4688baaed5989
This commit is contained in:
Jean Chalard 2012-06-29 14:50:48 +09:00
parent e9a86e2cdb
commit 7b40c68277

View file

@ -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;
} }