浏览代码

Merge pull request #5012 from nextcloud/darkThemePref

fix dark theme preference for dev version: use different preference name
Tobias Kaminsky 5 年之前
父节点
当前提交
1656f64ad9

+ 1 - 1
src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java

@@ -695,7 +695,7 @@ public class SettingsActivity extends ThemedPreferenceActivity
 
         loadStoragePath();
 
-        ListPreference themePref = (ListPreference) findPreference("darkTheme");
+        ListPreference themePref = (ListPreference) findPreference("darkMode");
 
         List<String> themeEntries = new ArrayList<>(3);
         themeEntries.add(getString(R.string.prefs_value_theme_light));

+ 1 - 1
src/main/res/xml/preferences.xml

@@ -28,7 +28,7 @@
             android:key="storage_path"/>
         <ListPreference
             android:title="@string/prefs_theme_title"
-            android:key="darkTheme"
+            android:key="darkMode"
             android:summary="%s" />
 	</PreferenceCategory>
 	<PreferenceCategory