diff --git a/res/values-v28/strings.xml b/res/values-v28/strings.xml deleted file mode 100644 index f53bcd2e..00000000 --- a/res/values-v28/strings.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - System Default - Light - Dark - - \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index c938291c..66baf019 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -413,6 +413,12 @@ Dark + + System Default + Light + Dark + + default light diff --git a/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java b/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java index a2ce3a4b..47bd7368 100644 --- a/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java +++ b/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java @@ -71,7 +71,11 @@ public class SettingsFragment extends PreferenceFragmentCompat { themeSelector.setKey("theme_pref"); themeSelector.setTitle(R.string.theme_dialog_title); themeSelector.setDialogTitle(R.string.theme_dialog_title); - themeSelector.setEntries(R.array.theme_list); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { + themeSelector.setEntries(R.array.theme_list_v28); + } else { + themeSelector.setEntries(R.array.theme_list); + } themeSelector.setEntryValues(R.array.theme_list_values); themeSelector.setDefaultValue(ThemeUtil.DEFAULT_MODE); themeSelector.setSummaryProvider(ListPreference.SimpleSummaryProvider.getInstance());