From 7b40c682778a544cf61b211e74b74961ff6e1206 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 29 Jun 2012 14:50:48 +0900 Subject: [PATCH] Refactoring which will help with future changes (A47) Change-Id: Ibc2d28f9f95966f77d4d7bdf9ae4688baaed5989 --- java/src/com/android/inputmethod/latin/LatinIME.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 722f323a2..127a07d13 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1708,8 +1708,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } if (!mWordComposer.isComposingWord()) { - // This is dead code: we can't come here with an empty word composer. - setPunctuationSuggestions(); + // We are never called with an empty word composer, but if because of a bug + // 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; }