aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-10-08 16:33:27 +0900
committerJean Chalard <jchalard@google.com>2013-10-08 16:33:27 +0900
commit482aa129e4fa104708601672c9eff674d0a79cd4 (patch)
tree7e83a19f5fc4dc1d96017f4b543a4faaa8438db3 /java/src
parent36c56caee3049737a55e2421bf9e3727c4936f24 (diff)
downloadlatinime-482aa129e4fa104708601672c9eff674d0a79cd4.tar.gz
latinime-482aa129e4fa104708601672c9eff674d0a79cd4.tar.xz
latinime-482aa129e4fa104708601672c9eff674d0a79cd4.zip
Show the keyboard earlier when rotating.
Bug: 11107229 Change-Id: I0b36341d60b634a860eb13fafd0dc69fe734bdeb
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