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
main
Tadashi G. Takaoka 2011-11-29 14:12:49 +09:00 committed by Ken Wakasa
parent c960695f38
commit 3e405f3afd
1 changed files with 3 additions and 1 deletions

View File

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