aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-05-01 02:16:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-01 02:16:20 +0000
commit25c90e6d51aeca5dce05b5adb691876b55a142d5 (patch)
tree211894ea93bded5e1abdc99d3f79554d9c77c14a /java/src/com
parente5ae0bd36aaaa3396ed09e23c7a19acab63eed7f (diff)
parentaa3a96f3a1c5aeacefdfd6e6a33e58c9d9c49553 (diff)
downloadlatinime-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')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java9
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())