Fix keyboard theme initializing bug
Change-Id: If7037f3e0606ee34d1a6739cc39da23de18cc35c
This commit is contained in:
parent
40f7b43b3f
commit
befc1a05c9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue