mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-17 11:59:34 +00:00
fix issue with reloading after switching background image
This commit is contained in:
parent
1e6617d859
commit
3e3ceda124
2 changed files with 2 additions and 1 deletions
|
@ -113,6 +113,8 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
|||
}
|
||||
|
||||
public void forceUpdateKeyboardTheme(@NonNull Context displayContext) {
|
||||
Settings settings = Settings.getInstance();
|
||||
settings.loadSettings(displayContext, settings.getCurrent().mLocale, settings.getCurrent().mInputAttributes);
|
||||
mLatinIME.setInputView(onCreateInputView(displayContext, mIsHardwareAcceleratedDrawingEnabled));
|
||||
}
|
||||
|
||||
|
|
|
@ -1983,7 +1983,6 @@ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue