From 46f92276159134660069f3af194bd43908940562 Mon Sep 17 00:00:00 2001 From: Helium314 Date: Mon, 21 Apr 2025 09:48:22 +0200 Subject: [PATCH] properly reload emoji keyboards (fixes split layout change not shown) --- .../helium314/keyboard/keyboard/KeyboardSwitcher.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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()); } /**