aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-10-09 21:00:15 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 21:00:15 -0700
commit2b33fc74b681fbdbb2bd0aee753753236d919f4b (patch)
treefef7f27ecb74b28420a155f73a3a532396769194 /java/src
parent2715465b9487c00fc38676494d1f9dd3ea1a15f2 (diff)
parent17bec5cb1cb963e412201f3c85f00a16f0cbd9f2 (diff)
downloadlatinime-2b33fc74b681fbdbb2bd0aee753753236d919f4b.tar.gz
latinime-2b33fc74b681fbdbb2bd0aee753753236d919f4b.tar.xz
latinime-2b33fc74b681fbdbb2bd0aee753753236d919f4b.zip
am 17bec5cb: am 92190d9a: Merge "Show the keyboard earlier when rotating."
* commit '17bec5cb1cb963e412201f3c85f00a16f0cbd9f2': Show the keyboard earlier when rotating.
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 4d7e43e17..bdf7a9d29 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -926,10 +926,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
suggest.setAutoCorrectionThreshold(currentSettingsValues.mAutoCorrectionThreshold);
}
- if (canReachInputConnection) {
- // If we can't reach the input connection, we don't want to call loadKeyboard yet.
- // It will be done in #retryResetCaches.
- switcher.loadKeyboard(editorInfo, currentSettingsValues);
+ switcher.loadKeyboard(editorInfo, currentSettingsValues);
+ if (!canReachInputConnection) {
+ // If we can't reach the input connection, we will call loadKeyboard again later,
+ // so we need to save its state now. The call will be done in #retryResetCaches.
+ switcher.saveKeyboardState();
}
} else if (restarting) {
// TODO: Come up with a more comprehensive way to reset the keyboard layout when