diff options
author | 2012-11-22 11:41:53 +0900 | |
---|---|---|
committer | 2012-11-22 11:41:53 +0900 | |
commit | befc1a05c993106fb6657bb9e188879dafe401ec (patch) | |
tree | 4736a5f910a5ea5753d903f7b1f9d04c942e7e47 /java/src | |
parent | 40f7b43b3f0f2845cc005a901c911637c8c591ca (diff) | |
download | latinime-befc1a05c993106fb6657bb9e188879dafe401ec.tar.gz latinime-befc1a05c993106fb6657bb9e188879dafe401ec.tar.xz latinime-befc1a05c993106fb6657bb9e188879dafe401ec.zip |
Fix keyboard theme initializing bug
Change-Id: If7037f3e0606ee34d1a6739cc39da23de18cc35c
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index c2e31ee1e..c1c105e8d 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -125,7 +125,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions { } private void setContextThemeWrapper(Context context, KeyboardTheme keyboardTheme) { - if (mKeyboardTheme.mThemeId != keyboardTheme.mThemeId) { + if (mThemeContext == null || mKeyboardTheme.mThemeId != keyboardTheme.mThemeId) { mKeyboardTheme = keyboardTheme; mThemeContext = new ContextThemeWrapper(context, keyboardTheme.mStyleId); KeyboardLayoutSet.clearKeyboardCache(); |