Save keyboard layout only when it is shown
Bug: 5130446 Change-Id: I150b4a053036eae050099155169325f0d1f7dfedmain
parent
e2d00ab470
commit
f2c9a88887
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue