Fix keyboard theme initializing bug
Change-Id: If7037f3e0606ee34d1a6739cc39da23de18cc35cmain
parent
40f7b43b3f
commit
befc1a05c9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue