fix issue with reloading after switching background image

This commit is contained in:
Helium314 2025-02-08 21:54:36 +01:00
parent b849c696c5
commit 1e6617d859
2 changed files with 1 additions and 1 deletions

View file

@ -1983,6 +1983,7 @@ public class LatinIME extends InputMethodService implements
private void reloadIfNecessary() {
// better do the reload when showing the keyboard next time, and not on settings change
if (SettingsActivityKt.keyboardNeedsReload) {
loadSettings();
KeyboardLayoutSet.onKeyboardThemeChanged();
mKeyboardSwitcher.forceUpdateKeyboardTheme(mDisplayContext);
SettingsActivityKt.keyboardNeedsReload = false;

View file

@ -16,7 +16,6 @@ import kotlinx.coroutines.flow.MutableStateFlow
// todo
// calling KeyboardSwitcher.getInstance().forceUpdateKeyboardTheme(requireContext()) while keyboard is showing shows just full screen background
// but reload while keyboard is showing would be great (isn't it at least semi-done when changing one-handed mode?)
// bg image inconsistent about being on toolbar or not (is this new?)
// performance
// find a nice way of testing (probably add logs for measuring time and recompositions)
// consider that stuff in composables can get called quite often on any changes