aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-22 03:52:27 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-22 03:52:27 +0000
commit0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae (patch)
tree1fc91ae43f15a9dde29155c305279d036fc3096c /app/src/main/res
parenta2fe95912b00a926f42089bc7e455507306164af (diff)
downloadinfinity-for-reddit-0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae.tar
infinity-for-reddit-0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae.tar.gz
infinity-for-reddit-0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae.tar.bz2
infinity-for-reddit-0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae.tar.lz
infinity-for-reddit-0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae.tar.xz
infinity-for-reddit-0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae.tar.zst
infinity-for-reddit-0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae.zip
Changing theme is now available.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/values/arrays.xml8
-rw-r--r--app/src/main/res/values/strings.xml2
-rw-r--r--app/src/main/res/xml/main_preferences.xml3
3 files changed, 10 insertions, 3 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 99955ed6..56477516 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -19,12 +19,18 @@
<item>24</item>
</string-array>
- <string-array name="settings_theme">
+ <string-array name="settings_theme_q">
<item>Light Theme</item>
<item>Dark Theme</item>
<item>Device Default</item>
</string-array>
+ <string-array name="settings_theme">
+ <item>Light Theme</item>
+ <item>Dark Theme</item>
+ <item>Set by Battery Saver</item>
+ </string-array>
+
<string-array name="settings_theme_values">
<item>0</item>
<item>1</item>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index dba73658..ad1b9b7d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -250,4 +250,6 @@
<string name="settings_theme_dark_theme_summary">Dark Theme</string>
<string name="settings_theme_system_default_summary">Device default</string>
<string name="settings_enable_nsfw_title">Enable NSFW</string>
+
+ <string name="no_link_available">Cannot get the link</string>
</resources>
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml
index 41026a87..1578ff63 100644
--- a/app/src/main/res/xml/main_preferences.xml
+++ b/app/src/main/res/xml/main_preferences.xml
@@ -9,8 +9,7 @@
app:fragment="Settings.NotificationPreferenceFragment" />
<ListPreference
- app:defaultValue="0"
- app:entries="@array/settings_theme"
+ app:defaultValue="2"
app:entryValues="@array/settings_theme_values"
app:key="theme"
app:icon="@drawable/ic_outline_color_lens_24px"