Merge pull request #4956 from nextcloud/fixScreenshot

fix #4955
This commit is contained in:
Andy Scherzinger 2019-12-06 10:21:22 +01:00 committed by GitHub
commit f9bd91b4b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);