diff options
author | 2010-12-01 04:08:24 -0800 | |
---|---|---|
committer | 2010-12-01 04:08:25 -0800 | |
commit | f987289b598bca37d664d6bc4994355f81e3f175 (patch) | |
tree | a3bff977ea3db689459186231149be8b547cf89f /java/src | |
parent | 9d4963d5666cd613349f995c2e8b8710724ad3ef (diff) | |
parent | 383d6d8c8170155df4cb67a94a8a80f3a4463cbe (diff) | |
download | latinime-f987289b598bca37d664d6bc4994355f81e3f175.tar.gz latinime-f987289b598bca37d664d6bc4994355f81e3f175.tar.xz latinime-f987289b598bca37d664d6bc4994355f81e3f175.zip |
Merge "Disable "touch to correct words" when suggestion strip is off"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index cc8dfebe2..4ef19e831 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -641,7 +641,7 @@ public class LatinIME extends InputMethodService } private void checkReCorrectionOnStart() { - if (mReCorrectionEnabled && isPredictionOn()) { + if (mReCorrectionEnabled && isSuggestionShown() && isPredictionOn()) { // First get the cursor position. This is required by setOldSuggestions(), so that // it can pass the correct range to setComposingRegion(). At this point, we don't // have valid values for mLastSelectionStart/Stop because onUpdateSelection() has @@ -745,7 +745,7 @@ public class LatinIME extends InputMethodService mLastSelectionStart = newSelStart; mLastSelectionEnd = newSelEnd; - if (mReCorrectionEnabled) { + if (mReCorrectionEnabled && isSuggestionShown()) { // Don't look for corrections if the keyboard is not visible if (mKeyboardSwitcher.isInputViewShown()) { // Check if we should go in or out of correction mode. |