aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-30 19:19:04 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-30 19:19:04 -0700
commitace3f3c5d56f5b4a58e8dc400fec1bb8c7b17a63 (patch)
tree8f890624a0efee2306197dc117477605ef26c17e /java/src/com/android/inputmethod/latin/LatinIME.java
parentb4251873b0ff784d7f7c925da84ce7b862a87412 (diff)
parent25c90e6d51aeca5dce05b5adb691876b55a142d5 (diff)
downloadlatinime-ace3f3c5d56f5b4a58e8dc400fec1bb8c7b17a63.tar.gz
latinime-ace3f3c5d56f5b4a58e8dc400fec1bb8c7b17a63.tar.xz
latinime-ace3f3c5d56f5b4a58e8dc400fec1bb8c7b17a63.zip
am 25c90e6d: Merge "Don\'t do recorrection when suggestions are off." into jb-mr2-dev
* commit '25c90e6d51aeca5dce05b5adb691876b55a142d5': Don't do recorrection when suggestions are off.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-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())