Fix keyboard theme initializing bug

Change-Id: If7037f3e0606ee34d1a6739cc39da23de18cc35c
main
Tadashi G. Takaoka 2012-11-22 11:41:53 +09:00
parent 40f7b43b3f
commit befc1a05c9
1 changed files with 1 additions and 1 deletions

View File

@ -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();