From b300dbbd39b1aed738028fb538aa935a7fbd2e37 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 7 Dec 2011 21:39:00 +0900 Subject: [PATCH] Reset saved caps lock sate when new keyboard is loaded Bug: 5722919 Change-Id: Id92632a0feffc3342d3c31e90c0da973c934f3c0 --- java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java | 2 ++ 1 file changed, 2 insertions(+) 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() {