mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
commit
f9bd91b4b3
1 changed files with 5 additions and 1 deletions
|
@ -709,7 +709,11 @@ public class SettingsActivity extends ThemedPreferenceActivity
|
|||
|
||||
themePref.setEntries(themeEntries.toArray(new String[0]));
|
||||
themePref.setEntryValues(themeValues.toArray(new String[0]));
|
||||
themePref.setSummary(themePref.getEntry().length() == 0 ? DarkMode.LIGHT.name() : themePref.getEntry());
|
||||
|
||||
if (TextUtils.isEmpty(themePref.getEntry())) {
|
||||
themePref.setValue(DarkMode.LIGHT.name());
|
||||
themePref.setSummary(TextUtils.isEmpty(themePref.getEntry()) ? DarkMode.LIGHT.name() : themePref.getEntry());
|
||||
}
|
||||
|
||||
themePref.setOnPreferenceChangeListener((preference, newValue) -> {
|
||||
DarkMode mode = DarkMode.valueOf((String) newValue);
|
||||
|
|
Loading…
Reference in a new issue