aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-30 14:23:55 +0900
committerJean Chalard <jchalard@google.com>2013-05-01 10:17:28 +0900
commitaa3a96f3a1c5aeacefdfd6e6a33e58c9d9c49553 (patch)
tree4a7a11caeb44fc3702157178a71fa524aa358edf /java/src
parent31a70de6d22c9fd763d0e6dcc46e24be33838066 (diff)
downloadlatinime-aa3a96f3a1c5aeacefdfd6e6a33e58c9d9c49553.tar.gz
latinime-aa3a96f3a1c5aeacefdfd6e6a33e58c9d9c49553.tar.xz
latinime-aa3a96f3a1c5aeacefdfd6e6a33e58c9d9c49553.zip
Don't do recorrection when suggestions are off.
Bug: 8767981 Change-Id: If5c775e488b91ae03ecce2673c99918ac8134928
Diffstat (limited to 'java/src')
-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())