diff --git a/app/src/main/java/helium314/keyboard/keyboard/KeyboardSwitcher.java b/app/src/main/java/helium314/keyboard/keyboard/KeyboardSwitcher.java index aeb07b9e3..defdbe5e7 100644 --- a/app/src/main/java/helium314/keyboard/keyboard/KeyboardSwitcher.java +++ b/app/src/main/java/helium314/keyboard/keyboard/KeyboardSwitcher.java @@ -515,9 +515,11 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions { } public void reloadKeyboard() { - if (mCurrentInputView != null) - loadKeyboard(mLatinIME.getCurrentInputEditorInfo(), Settings.getValues(), - mLatinIME.getCurrentAutoCapsState(), mLatinIME.getCurrentRecapitalizeState()); + if (mCurrentInputView == null) + return; + mEmojiPalettesView.clearKeyboardCache(); + loadKeyboard(mLatinIME.getCurrentInputEditorInfo(), Settings.getValues(), + mLatinIME.getCurrentAutoCapsState(), mLatinIME.getCurrentRecapitalizeState()); } /**