aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-10-01 18:06:26 +0900
committerJean Chalard <jchalard@google.com>2014-10-01 19:17:31 +0900
commit38144047ea3985c9345e7fbe6bb3aafbeaea5f06 (patch)
tree13ff04bce00fe4437d962c27f2b64269acb04646 /java/src/com/android/inputmethod/latin/LatinIME.java
parent7b673c72651aa7dbfc3fc87fe2190d8cffb320c1 (diff)
downloadlatinime-38144047ea3985c9345e7fbe6bb3aafbeaea5f06.tar.gz
latinime-38144047ea3985c9345e7fbe6bb3aafbeaea5f06.tar.xz
latinime-38144047ea3985c9345e7fbe6bb3aafbeaea5f06.zip
Make a better effort to detect a framework lie.
Bug: 17130496 Change-Id: I1a3631670c152d9b7667c9c4e08e14c48569eef5
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java6
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 */);