You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using AppCompatDelegate.setDefaultNightMode(b ? AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO); to toggle between dark and normal mode in my app's settings. It seems the new LocaleChangerAppCompatDelegate is causing this functionality to malfunction (the app stays in weird state and colors are not correct).
If I remove this from MainActivity it works well:
private LocaleChangerAppCompatDelegate localeChangerAppCompatDelegate;
@NonNull
@Override
public AppCompatDelegate getDelegate() {
if (localeChangerAppCompatDelegate == null) {
localeChangerAppCompatDelegate = new LocaleChangerAppCompatDelegate(super.getDelegate());
}
return localeChangerAppCompatDelegate;
}
I am using LocaleChanger 1.1 and AppCompat 1.2.0 (latest).
The text was updated successfully, but these errors were encountered:
I am using
AppCompatDelegate.setDefaultNightMode(b ? AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO);
to toggle between dark and normal mode in my app's settings. It seems the newLocaleChangerAppCompatDelegate
is causing this functionality to malfunction (the app stays in weird state and colors are not correct).If I remove this from MainActivity it works well:
I am using LocaleChanger 1.1 and AppCompat 1.2.0 (latest).
The text was updated successfully, but these errors were encountered: