mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Reset the message view theme when the app theme changes
This commit is contained in:
parent
44b37449aa
commit
189452618a
@ -407,7 +407,14 @@ public class Prefs extends K9PreferenceActivity {
|
||||
SharedPreferences preferences = Preferences.getPreferences(this).getPreferences();
|
||||
|
||||
K9.setK9Language(mLanguage.getValue());
|
||||
K9.setK9Theme(mTheme.getValue().equals("dark") ? K9.THEME_DARK : K9.THEME_LIGHT);
|
||||
|
||||
int newTheme = mTheme.getValue().equals("dark") ? K9.THEME_DARK : K9.THEME_LIGHT;
|
||||
if (K9.getK9Theme() != newTheme) {
|
||||
// Reset the message view theme when the app theme changes
|
||||
K9.setK9MessageViewTheme(newTheme);
|
||||
}
|
||||
K9.setK9Theme(newTheme);
|
||||
|
||||
K9.setAnimations(mAnimations.isChecked());
|
||||
K9.setGesturesEnabled(mGestures.isChecked());
|
||||
K9.setUseVolumeKeysForNavigation(mVolumeNavigation.getCheckedItems()[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user