A follow up to I830de4d1

bug: 5130446
Change-Id: Ib1a4603590387c30be7555b8386f5e0607ea7249
This commit is contained in:
Ken Wakasa 2011-08-18 21:44:36 +09:00
parent 89fdb82753
commit e56e88beff

View file

@ -545,9 +545,8 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
private void setAutomaticTemporaryUpperCase() { private void setAutomaticTemporaryUpperCase() {
if (mKeyboardView == null) return; if (mKeyboardView == null) return;
final Keyboard keyboard = mKeyboardView.getKeyboard(); final Keyboard keyboard = mKeyboardView.getKeyboard();
if (keyboard != null) { if (keyboard == null) return;
keyboard.setAutomaticTemporaryUpperCase(); keyboard.setAutomaticTemporaryUpperCase();
}
mKeyboardView.invalidateAllKeys(); mKeyboardView.invalidateAllKeys();
} }