am b300dbbd: Reset saved caps lock sate when new keyboard is loaded

* commit 'b300dbbd39b1aed738028fb538aa935a7fbd2e37':
  Reset saved caps lock sate when new keyboard is loaded
main
Tadashi G. Takaoka 2011-12-07 05:50:18 -08:00 committed by Android Git Automerger
commit 8982d240e4
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
} }
public void restore() { public void restore() {
mPrevMainKeyboardWasShiftLocked = false;
if (!mIsValid || mIsAlphabetMode) { if (!mIsValid || mIsAlphabetMode) {
setAlphabetKeyboard(); setAlphabetKeyboard();
} else { } else {
@ -593,6 +594,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
} }
} }
// TODO: Move this variable to KeyboardState.
private boolean mPrevMainKeyboardWasShiftLocked; private boolean mPrevMainKeyboardWasShiftLocked;
private void setSymbolsKeyboard() { private void setSymbolsKeyboard() {