am b230806f: Merge "Save keyboard layout only when it is shown"

* commit 'b230806f44441ea68f608f6430667fed85d3a048':
  Save keyboard layout only when it is shown
main
Tadashi G. Takaoka 2011-11-29 00:55:22 -08:00 committed by Android Git Automerger
commit 8463e159c3
1 changed files with 3 additions and 1 deletions

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() {