summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-11-29 10:27:12 +0300
committerAndrew Dolgov <[email protected]>2019-11-29 10:27:12 +0300
commit21ff9102e2c314b0c51a872e4b7781a299e10016 (patch)
treefd4c40b03b92d310b0c80b9024709b61df0f47e7 /org.fox.ttrss/src/main/res
parent570c7554a5c2a5a6310b719a2f92d825882efef3 (diff)
remove deprecated MODE_NIGHT_AUTO_TIME
check for night mode using resources instead of theme name
Diffstat (limited to 'org.fox.ttrss/src/main/res')
-rw-r--r--org.fox.ttrss/src/main/res/values/arrays.xml3
-rwxr-xr-xorg.fox.ttrss/src/main/res/xml/preferences.xml2
2 files changed, 1 insertions, 4 deletions
diff --git a/org.fox.ttrss/src/main/res/values/arrays.xml b/org.fox.ttrss/src/main/res/values/arrays.xml
index 894957e3..d2df646a 100644
--- a/org.fox.ttrss/src/main/res/values/arrays.xml
+++ b/org.fox.ttrss/src/main/res/values/arrays.xml
@@ -1,12 +1,10 @@
<resources>
<string-array name="pref_theme_names">
- <item>@string/theme_auto</item>
<item>@string/theme_follow_device</item>
<item>@string/theme_light</item>
<item>@string/theme_dark</item>
</string-array>
<string-array name="pref_theme_values" translatable="false">
- <item>THEME_AUTO</item>
<item>THEME_FOLLOW_DEVICE</item>
<item>THEME_LIGHT</item>
<item>THEME_DARK</item>
@@ -54,6 +52,5 @@
<item>30</item>
<item>45</item>
</string-array>
- <string name="theme_auto">Auto (by time)</string>
<string name="theme_follow_device">Same as device</string>
</resources> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/xml/preferences.xml b/org.fox.ttrss/src/main/res/xml/preferences.xml
index d9fef61a..93bc74fa 100755
--- a/org.fox.ttrss/src/main/res/xml/preferences.xml
+++ b/org.fox.ttrss/src/main/res/xml/preferences.xml
@@ -32,7 +32,7 @@
android:key="category_look_and_feel"
android:title="@string/look_and_feel" >
<ListPreference
- android:defaultValue="THEME_AUTO"
+ android:defaultValue="THEME_FOLLOW_DEVICE"
android:entries="@array/pref_theme_names"
android:entryValues="@array/pref_theme_values"
android:key="theme"