diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index 50d963c07..71a71d6fd 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -126,6 +126,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha } public void restore() { + mPrevMainKeyboardWasShiftLocked = false; if (!mIsValid || mIsAlphabetMode) { setAlphabetKeyboard(); } else { @@ -593,6 +594,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha } } + // TODO: Move this variable to KeyboardState. private boolean mPrevMainKeyboardWasShiftLocked; private void setSymbolsKeyboard() {