aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-10-01 10:27:00 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-01 10:27:00 +0000
commit391f046d894983cde18b6fba23537d89687a8b96 (patch)
tree500ba0f0b761cd58cfbcbbac666558f9b7faadc0 /java/src/com/android/inputmethod/latin/LatinIME.java
parent4108bc2efedb3c895f0f6f3ee45b39dba5644e42 (diff)
parenteff21b653f6ddfdd9b931aaacd0d15b53b57e84f (diff)
downloadlatinime-391f046d894983cde18b6fba23537d89687a8b96.tar.gz
latinime-391f046d894983cde18b6fba23537d89687a8b96.tar.xz
latinime-391f046d894983cde18b6fba23537d89687a8b96.zip
am eff21b65: Merge "Make a better effort to detect a framework lie."
* commit 'eff21b653f6ddfdd9b931aaacd0d15b53b57e84f': 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.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 */);