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,8 +403,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
resetPendingImsCallback(); resetPendingImsCallback();
mIsOrientationChanging = true; mIsOrientationChanging = true;
final LatinIME latinIme = getOuterInstance(); final LatinIME latinIme = getOuterInstance();
if (latinIme.isInputViewShown()) {
latinIme.mKeyboardSwitcher.saveKeyboardState(); latinIme.mKeyboardSwitcher.saveKeyboardState();
} }
}
private void resetPendingImsCallback() { private void resetPendingImsCallback() {
mHasPendingFinishInputView = false; mHasPendingFinishInputView = false;