mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-16 23:12:47 +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
|
@Override
|
||||||
public void onConfigurationChanged(final Configuration conf) {
|
public void onConfigurationChanged(final Configuration conf) {
|
||||||
SettingsValues settingsValues = mSettings.getCurrent();
|
SettingsValues settingsValues = mSettings.getCurrent();
|
||||||
|
Log.i(TAG, "onConfigurationChanged");
|
||||||
SubtypeSettingsKt.reloadSystemLocales(this);
|
SubtypeSettingsKt.reloadSystemLocales(this);
|
||||||
if (settingsValues.mDisplayOrientation != conf.orientation) {
|
if (settingsValues.mDisplayOrientation != conf.orientation) {
|
||||||
mHandler.startOrientationChanging();
|
mHandler.startOrientationChanging();
|
||||||
|
@ -806,6 +807,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
@Override
|
@Override
|
||||||
public void onInitializeInterface() {
|
public void onInitializeInterface() {
|
||||||
mDisplayContext = getDisplayContext();
|
mDisplayContext = getDisplayContext();
|
||||||
|
Log.d(TAG, "onInitializeInterface -> possibly configuration changed");
|
||||||
mKeyboardSwitcher.updateKeyboardTheme(mDisplayContext);
|
mKeyboardSwitcher.updateKeyboardTheme(mDisplayContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -218,6 +218,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
||||||
mContext = context;
|
mContext = context;
|
||||||
try {
|
try {
|
||||||
final SharedPreferences prefs = mPrefs;
|
final SharedPreferences prefs = mPrefs;
|
||||||
|
Log.i(TAG, "loadSettings");
|
||||||
final RunInLocale<SettingsValues> job = new RunInLocale<SettingsValues>() {
|
final RunInLocale<SettingsValues> job = new RunInLocale<SettingsValues>() {
|
||||||
@Override
|
@Override
|
||||||
protected SettingsValues job(final Resources res) {
|
protected SettingsValues job(final Resources res) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue