add logging when configuration changed, might help with #298

This commit is contained in:
Helium314 2023-12-15 10:59:38 +01:00
parent ad9282ea25
commit ef4acba9c3
2 changed files with 3 additions and 0 deletions

View file

@ -778,6 +778,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@Override
public void onConfigurationChanged(final Configuration conf) {
SettingsValues settingsValues = mSettings.getCurrent();
Log.i(TAG, "onConfigurationChanged");
SubtypeSettingsKt.reloadSystemLocales(this);
if (settingsValues.mDisplayOrientation != conf.orientation) {
mHandler.startOrientationChanging();
@ -806,6 +807,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@Override
public void onInitializeInterface() {
mDisplayContext = getDisplayContext();
Log.d(TAG, "onInitializeInterface -> possibly configuration changed");
mKeyboardSwitcher.updateKeyboardTheme(mDisplayContext);
}

View file

@ -218,6 +218,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
mContext = context;
try {
final SharedPreferences prefs = mPrefs;
Log.i(TAG, "loadSettings");
final RunInLocale<SettingsValues> job = new RunInLocale<SettingsValues>() {
@Override
protected SettingsValues job(final Resources res) {