Show the keyboard earlier when rotating.

Bug: 11107229
Change-Id: I0b36341d60b634a860eb13fafd0dc69fe734bdeb
main
Jean Chalard 2013-10-08 16:33:27 +09:00
parent 36c56caee3
commit 482aa129e4
1 changed files with 5 additions and 4 deletions

View File

@ -926,10 +926,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
suggest.setAutoCorrectionThreshold(currentSettingsValues.mAutoCorrectionThreshold); suggest.setAutoCorrectionThreshold(currentSettingsValues.mAutoCorrectionThreshold);
} }
if (canReachInputConnection) { switcher.loadKeyboard(editorInfo, currentSettingsValues);
// If we can't reach the input connection, we don't want to call loadKeyboard yet. if (!canReachInputConnection) {
// It will be done in #retryResetCaches. // If we can't reach the input connection, we will call loadKeyboard again later,
switcher.loadKeyboard(editorInfo, currentSettingsValues); // so we need to save its state now. The call will be done in #retryResetCaches.
switcher.saveKeyboardState();
} }
} else if (restarting) { } else if (restarting) {
// TODO: Come up with a more comprehensive way to reset the keyboard layout when // TODO: Come up with a more comprehensive way to reset the keyboard layout when