aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-12-13 05:48:20 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-12-13 05:48:20 -0800
commitdbb3f059af93b9ce60955ef3f2a1b810cc627450 (patch)
treea0b377bc9f62bf49b6c19670694bfa37e9275de7
parent27f1554ad5d906c4c98a2daa462bdb7db00b13ec (diff)
parent8e404536cd20a5624acf5cea0c3aae19324b0e3f (diff)
downloadlatinime-dbb3f059af93b9ce60955ef3f2a1b810cc627450.tar.gz
latinime-dbb3f059af93b9ce60955ef3f2a1b810cc627450.tar.xz
latinime-dbb3f059af93b9ce60955ef3f2a1b810cc627450.zip
am 8e404536: Merge "Simplification"
* commit '8e404536cd20a5624acf5cea0c3aae19324b0e3f': Simplification
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index f5875ca4a..6f7bdd85f 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1423,10 +1423,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
ic.setComposingText(textWithUnderline, 1);
if (mWordComposer.size() == 0) {
mHasUncommittedTypedChars = false;
- }
- if (1 == length) {
- // 1 == length means we are about to erase the last character of the word,
- // so we can show bigrams.
+ // Remaining size equals zero means we just erased the last character of the
+ // word, so we can show bigrams.
mHandler.postUpdateBigramPredictions();
} else {
// length > 1, so we still have letters to deduce a suggestion from.