Merge "Save keyboard layout only when it is shown"

This commit is contained in:
Tadashi G. Takaoka 2011-11-29 00:53:38 -08:00 committed by Android (Google) Code Review
commit b230806f44

View file

@ -403,7 +403,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
resetPendingImsCallback(); resetPendingImsCallback();
mIsOrientationChanging = true; mIsOrientationChanging = true;
final LatinIME latinIme = getOuterInstance(); final LatinIME latinIme = getOuterInstance();
latinIme.mKeyboardSwitcher.saveKeyboardState(); if (latinIme.isInputViewShown()) {
latinIme.mKeyboardSwitcher.saveKeyboardState();
}
} }
private void resetPendingImsCallback() { private void resetPendingImsCallback() {