DO NOT MERGE. Save keyboard layout only when it is shown

This is a cherrypick of I150b4a05 from master to ics-mr1.

Bug: 5130446
Bug: 5787394
Change-Id: Ie0d58283042166537ff161344564c3c51b0d1296
This commit is contained in:
Tadashi G. Takaoka 2011-11-29 14:12:49 +09:00 committed by Ken Wakasa
parent c960695f38
commit 3e405f3afd

View file

@ -405,8 +405,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
resetPendingImsCallback();
mIsOrientationChanging = true;
final LatinIME latinIme = getOuterInstance();
if (latinIme.isInputViewShown()) {
latinIme.mKeyboardSwitcher.saveKeyboardState();
}
}
private void resetPendingImsCallback() {
mHasPendingFinishInputView = false;