mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 23:20:54 +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) {
|
public void forceUpdateKeyboardTheme(@NonNull Context displayContext) {
|
||||||
|
Settings settings = Settings.getInstance();
|
||||||
|
settings.loadSettings(displayContext, settings.getCurrent().mLocale, settings.getCurrent().mInputAttributes);
|
||||||
mLatinIME.setInputView(onCreateInputView(displayContext, mIsHardwareAcceleratedDrawingEnabled));
|
mLatinIME.setInputView(onCreateInputView(displayContext, mIsHardwareAcceleratedDrawingEnabled));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1983,7 +1983,6 @@ public class LatinIME extends InputMethodService implements
|
||||||
private void reloadIfNecessary() {
|
private void reloadIfNecessary() {
|
||||||
// better do the reload when showing the keyboard next time, and not on settings change
|
// better do the reload when showing the keyboard next time, and not on settings change
|
||||||
if (SettingsActivityKt.keyboardNeedsReload) {
|
if (SettingsActivityKt.keyboardNeedsReload) {
|
||||||
loadSettings();
|
|
||||||
KeyboardLayoutSet.onKeyboardThemeChanged();
|
KeyboardLayoutSet.onKeyboardThemeChanged();
|
||||||
mKeyboardSwitcher.forceUpdateKeyboardTheme(mDisplayContext);
|
mKeyboardSwitcher.forceUpdateKeyboardTheme(mDisplayContext);
|
||||||
SettingsActivityKt.keyboardNeedsReload = false;
|
SettingsActivityKt.keyboardNeedsReload = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue