mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-16 15:02:48 +00:00
add logging when configuration changed, might help with #298
This commit is contained in:
parent
ad9282ea25
commit
ef4acba9c3
2 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue