diff options
author | 2013-05-01 02:16:19 +0000 | |
---|---|---|
committer | 2013-05-01 02:16:20 +0000 | |
commit | 25c90e6d51aeca5dce05b5adb691876b55a142d5 (patch) | |
tree | 211894ea93bded5e1abdc99d3f79554d9c77c14a /java/src/com/android | |
parent | e5ae0bd36aaaa3396ed09e23c7a19acab63eed7f (diff) | |
parent | aa3a96f3a1c5aeacefdfd6e6a33e58c9d9c49553 (diff) | |
download | latinime-25c90e6d51aeca5dce05b5adb691876b55a142d5.tar.gz latinime-25c90e6d51aeca5dce05b5adb691876b55a142d5.tar.xz latinime-25c90e6d51aeca5dce05b5adb691876b55a142d5.zip |
Merge "Don't do recorrection when suggestions are off." into jb-mr2-dev
Diffstat (limited to 'java/src/com/android')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 16eab4bc4..5ef2120c6 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -929,8 +929,11 @@ public final class LatinIME extends InputMethodService implements KeyboardAction resetEntireInputState(newSelStart); } - // We moved the cursor. If we are touching a word, we need to resume suggestion. - mHandler.postResumeSuggestions(); + // We moved the cursor. If we are touching a word, we need to resume suggestion, + // unless suggestions are off. + if (isSuggestionsStripVisible()) { + mHandler.postResumeSuggestions(); + } // Reset the last recapitalization. mRecapitalizeStatus.deactivate(); mKeyboardSwitcher.updateShiftState(); @@ -2108,6 +2111,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction return false; if (mSuggestionStripView.isShowingAddToDictionaryHint()) return true; + if (null == mSettings.getCurrent()) + return false; if (!mSettings.getCurrent().isSuggestionStripVisibleInOrientation(mDisplayOrientation)) return false; if (mSettings.getCurrent().isApplicationSpecifiedCompletionsOn()) |