diff options
author | 2014-10-01 10:24:31 +0000 | |
---|---|---|
committer | 2014-10-01 10:24:32 +0000 | |
commit | eff21b653f6ddfdd9b931aaacd0d15b53b57e84f (patch) | |
tree | 5eee83963db3609dff40b872fb27455f9b52c0cf /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 7f226b4f9db15105b10fdc04249db433772e87b4 (diff) | |
parent | 38144047ea3985c9345e7fbe6bb3aafbeaea5f06 (diff) | |
download | latinime-eff21b653f6ddfdd9b931aaacd0d15b53b57e84f.tar.gz latinime-eff21b653f6ddfdd9b931aaacd0d15b53b57e84f.tar.xz latinime-eff21b653f6ddfdd9b931aaacd0d15b53b57e84f.zip |
Merge "Make a better effort to detect a framework lie."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 5aae010ac..64e404601 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -926,8 +926,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // mLastSelection{Start,End} are reset later in this method, no need to do it here needToCallLoadKeyboardLater = true; } else { - // When rotating, initialSelStart and initialSelEnd sometimes are lying. Make a best - // effort to work around this bug. + // When rotating, and when input is starting again in a field from where the focus + // didn't move (the keyboard having been closed with the back key), + // initialSelStart and initialSelEnd sometimes are lying. Make a best effort to + // work around this bug. mInputLogic.mConnection.tryFixLyingCursorPosition(); mHandler.postResumeSuggestions(true /* shouldIncludeResumedWordInSuggestions */, true /* shouldDelay */); |