aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-03-18 05:33:55 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-03-18 05:33:55 +0000
commit71e22b3e364c75400ef380df1d53a83f9dbd3a1b (patch)
tree7f2a1d5100e1a1dc3f3b2289d3118a49baa0559a /app/src/main/res/xml
parent21c47eaa4c3cffe0965447e2d7fb7d1cb964b720 (diff)
downloadinfinity-for-reddit-71e22b3e364c75400ef380df1d53a83f9dbd3a1b.tar
infinity-for-reddit-71e22b3e364c75400ef380df1d53a83f9dbd3a1b.tar.gz
infinity-for-reddit-71e22b3e364c75400ef380df1d53a83f9dbd3a1b.tar.bz2
infinity-for-reddit-71e22b3e364c75400ef380df1d53a83f9dbd3a1b.tar.lz
infinity-for-reddit-71e22b3e364c75400ef380df1d53a83f9dbd3a1b.tar.xz
infinity-for-reddit-71e22b3e364c75400ef380df1d53a83f9dbd3a1b.tar.zst
infinity-for-reddit-71e22b3e364c75400ef380df1d53a83f9dbd3a1b.zip
Immersive Interface is now available on Android 8.0. Add ThemePreferenceFragment. Fix theme database.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/xml/interface_preference.xml13
-rw-r--r--app/src/main/res/xml/main_preferences.xml5
-rw-r--r--app/src/main/res/xml/theme_preferences.xml18
3 files changed, 23 insertions, 13 deletions
diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml
index c62ecbac..7b21020e 100644
--- a/app/src/main/res/xml/interface_preference.xml
+++ b/app/src/main/res/xml/interface_preference.xml
@@ -2,19 +2,6 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
- <ListPreference
- app:defaultValue="2"
- app:entryValues="@array/settings_theme_values"
- app:key="theme"
- app:icon="@drawable/ic_outline_color_lens_24px"
- app:title="@string/settings_theme_title"
- app:useSimpleSummaryProvider="true" />
-
- <SwitchPreference
- app:defaultValue="false"
- app:key="amoled_dark"
- app:title="@string/settings_amoled_dark_title" />
-
<Preference
app:title="@string/settings_font_size_title"
app:icon="@drawable/ic_font_size_24dp"
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml
index d95e675f..3afc2f8b 100644
--- a/app/src/main/res/xml/main_preferences.xml
+++ b/app/src/main/res/xml/main_preferences.xml
@@ -13,6 +13,11 @@
app:fragment="ml.docilealligator.infinityforreddit.Settings.InterfacePreferenceFragment" />
<Preference
+ app:title="@string/settings_theme_title"
+ app:icon="@drawable/ic_outline_color_lens_24dp"
+ app:fragment="ml.docilealligator.infinityforreddit.Settings.ThemePreferenceFragment" />
+
+ <Preference
app:icon="@drawable/ic_gesture_24dp"
app:title="@string/settings_gestures_and_buttons_title"
app:fragment="ml.docilealligator.infinityforreddit.Settings.GesturesAndButtonsPreferenceFragment" />
diff --git a/app/src/main/res/xml/theme_preferences.xml b/app/src/main/res/xml/theme_preferences.xml
new file mode 100644
index 00000000..038485e0
--- /dev/null
+++ b/app/src/main/res/xml/theme_preferences.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <ListPreference
+ app:defaultValue="2"
+ app:entryValues="@array/settings_theme_values"
+ app:key="theme"
+ app:icon="@drawable/ic_outline_color_lens_24dp"
+ app:title="@string/settings_theme_title"
+ app:useSimpleSummaryProvider="true" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="amoled_dark"
+ app:title="@string/settings_amoled_dark_title" />
+
+</PreferenceScreen> \ No newline at end of file