diff options
author | 2014-01-16 17:45:59 +0000 | |
---|---|---|
committer | 2014-01-16 17:45:59 +0000 | |
commit | 9c9c43c0b71e5218b25f16399d2e1677484c62ec (patch) | |
tree | 726a9c3de058a656e1ca319a1191276c27187135 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | f4bf620502198202b98882254d7a355e1f5a6e45 (diff) | |
parent | ac6dfaf80bb280cbc9afb2d6e697379b3fd1f373 (diff) | |
download | latinime-9c9c43c0b71e5218b25f16399d2e1677484c62ec.tar.gz latinime-9c9c43c0b71e5218b25f16399d2e1677484c62ec.tar.xz latinime-9c9c43c0b71e5218b25f16399d2e1677484c62ec.zip |
Merge "[IL58] Simplification"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index fd2cd30b6..f99a8b500 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -234,6 +234,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } public void postResumeSuggestions() { + if (!getOwnerInstance().mSettings.getCurrent().isSuggestionStripVisible()) { + return; + } removeMessages(MSG_RESUME_SUGGESTIONS); sendMessageDelayed(obtainMessage(MSG_RESUME_SUGGESTIONS), mDelayUpdateSuggestions); } @@ -959,11 +962,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen newSelStart, newSelEnd, false /* shouldFinishComposition */); } - // We moved the cursor. If we are touching a word, we need to resume suggestion, - // unless suggestions are off. - if (isSuggestionsStripVisible()) { - mHandler.postResumeSuggestions(); - } + // We moved the cursor. If we are touching a word, we need to resume suggestion. + mHandler.postResumeSuggestions(); // Reset the last recapitalization. mInputLogic.mRecapitalizeStatus.deactivate(); mKeyboardSwitcher.updateShiftState(); |