aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-10-08 03:15:55 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-08 03:15:55 -0700
commit17bec5cb1cb963e412201f3c85f00a16f0cbd9f2 (patch)
tree9a099623b60b47f7783876082f263d37dfd1d588 /java/src/com/android/inputmethod/latin/LatinIME.java
parent67aa1a93f8376d73511ca6d08052298326eb3b44 (diff)
parent92190d9a756b7bad95648075828b23e61340358d (diff)
downloadlatinime-17bec5cb1cb963e412201f3c85f00a16f0cbd9f2.tar.gz
latinime-17bec5cb1cb963e412201f3c85f00a16f0cbd9f2.tar.xz
latinime-17bec5cb1cb963e412201f3c85f00a16f0cbd9f2.zip
am 92190d9a: Merge "Show the keyboard earlier when rotating."
* commit '92190d9a756b7bad95648075828b23e61340358d': Show the keyboard earlier when rotating.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-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