diff options
author | 2012-06-29 14:50:48 +0900 | |
---|---|---|
committer | 2012-07-05 11:10:02 +0900 | |
commit | 7b40c682778a544cf61b211e74b74961ff6e1206 (patch) | |
tree | 7d70459733c1960164e30271ce1f84b4f9905505 /java | |
parent | e9a86e2cdb58dd8d5601138294521e966d164520 (diff) | |
download | latinime-7b40c682778a544cf61b211e74b74961ff6e1206.tar.gz latinime-7b40c682778a544cf61b211e74b74961ff6e1206.tar.xz latinime-7b40c682778a544cf61b211e74b74961ff6e1206.zip |
Refactoring which will help with future changes (A47)
Change-Id: Ibc2d28f9f95966f77d4d7bdf9ae4688baaed5989
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files 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; } |