diff options
author | 2014-05-26 13:53:19 +0000 | |
---|---|---|
committer | 2014-05-26 13:53:19 +0000 | |
commit | 0088d1f6683fce0175266b90c3ec04f15ad8daeb (patch) | |
tree | a95613d6030b1a54458307e074f872f71bf87b97 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | 67e02a6aaa2b693f92f0f3f7948c3f8dadfc17e6 (diff) | |
parent | a6278eb9c1fbe102259cba392b1459f712ca46e7 (diff) | |
download | latinime-0088d1f6683fce0175266b90c3ec04f15ad8daeb.tar.gz latinime-0088d1f6683fce0175266b90c3ec04f15ad8daeb.tar.xz latinime-0088d1f6683fce0175266b90c3ec04f15ad8daeb.zip |
Merge "Use whether it's exact match to detect distracters."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index 457936931..2318dae2d 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -270,7 +270,7 @@ public final class InputLogic { // code path as for other kinds, use commitChosenWord, and do everything normally. We will // however need to reset the suggestion strip right away, because we know we can't take // the risk of calling commitCompletion twice because we don't know how the app will react. - if (SuggestedWordInfo.KIND_APP_DEFINED == suggestionInfo.mKind) { + if (suggestionInfo.isKindOf(SuggestedWordInfo.KIND_APP_DEFINED)) { mSuggestedWords = SuggestedWords.EMPTY; mSuggestionStripViewAccessor.setNeutralSuggestionStrip(); inputTransaction.requireShiftUpdate(InputTransaction.SHIFT_UPDATE_NOW); |