properly reload emoji keyboards (fixes split layout change not shown)

This commit is contained in:
Helium314 2025-04-21 09:48:22 +02:00
parent 7e59bcc799
commit 46f9227615

View file

@ -515,9 +515,11 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
} }
public void reloadKeyboard() { public void reloadKeyboard() {
if (mCurrentInputView != null) if (mCurrentInputView == null)
loadKeyboard(mLatinIME.getCurrentInputEditorInfo(), Settings.getValues(), return;
mLatinIME.getCurrentAutoCapsState(), mLatinIME.getCurrentRecapitalizeState()); mEmojiPalettesView.clearKeyboardCache();
loadKeyboard(mLatinIME.getCurrentInputEditorInfo(), Settings.getValues(),
mLatinIME.getCurrentAutoCapsState(), mLatinIME.getCurrentRecapitalizeState());
} }
/** /**