summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-30 00:38:22 +0300
committerAndrew Dolgov <[email protected]>2017-05-30 00:38:22 +0300
commitb185300695583c5e914c3d6de87b096e41f44602 (patch)
treeba4e07d74f80b3cdf537a6413282e46c047e96bc /org.fox.ttrss/src/main/res/xml
parentab36647865452daf448b65a1a63c6326944f36eb (diff)
widget: add option for dark background, configurable update interval
Diffstat (limited to 'org.fox.ttrss/src/main/res/xml')
-rwxr-xr-xorg.fox.ttrss/src/main/res/xml/preferences.xml12
-rw-r--r--org.fox.ttrss/src/main/res/xml/widget_small.xml1
2 files changed, 12 insertions, 1 deletions
diff --git a/org.fox.ttrss/src/main/res/xml/preferences.xml b/org.fox.ttrss/src/main/res/xml/preferences.xml
index df3be4e9..d09d9d8e 100755
--- a/org.fox.ttrss/src/main/res/xml/preferences.xml
+++ b/org.fox.ttrss/src/main/res/xml/preferences.xml
@@ -189,6 +189,18 @@
android:title="@string/offline_image_cache_enabled" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/prefs_widget" >
+ <ListPreference
+ android:defaultValue="15"
+ android:entries="@array/pref_widget_update_intervals"
+ android:entryValues="@array/pref_widget_update_intervals"
+ android:key="widget_update_interval"
+ android:title="@string/pref_widget_update_interval" />
+
+ <org.fox.ttrss.util.LessBrokenSwitchPreference
+ android:defaultValue="false"
+ android:key="widget_dark_mode"
+ android:title="@string/pref_widget_dark_background" />
+
<org.fox.ttrss.util.LessBrokenSwitchPreference
android:defaultValue="true"
android:key="widget_show_fresh"
diff --git a/org.fox.ttrss/src/main/res/xml/widget_small.xml b/org.fox.ttrss/src/main/res/xml/widget_small.xml
index df80ac46..99d5e538 100644
--- a/org.fox.ttrss/src/main/res/xml/widget_small.xml
+++ b/org.fox.ttrss/src/main/res/xml/widget_small.xml
@@ -1,7 +1,6 @@
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="40dp"
android:minHeight="40dp"
- android:updatePeriodMillis="86400000"
android:initialLayout="@layout/widget_small"
android:resizeMode="none"
android:widgetCategory="home_screen">