aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml4
-rw-r--r--res/xml/mostrecent_syncadapter.xml8
-rw-r--r--res/xml/settings.xml12
-rw-r--r--res/xml/starred_syncadapter.xml8
4 files changed, 32 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a292840f..afb9e1c1 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -357,6 +357,10 @@
<string name="settings.sync_interval">Sync Interval</string>
<string name="settings.sync_wifi">Sync on Wifi only</string>
<string name="settings.sync_wifi_summary">Only sync while on wifi</string>
+ <string name="settings.sync_most_recent">Sync Recently Added</string>
+ <string name="settings.sync_most_recent_summary">Automatically cache newly added albums</string>
+ <string name="settings.sync_starred">Sync Starred</string>
+ <string name="settings.sync_starred_summary">Automatically cache songs, albums, and artists which are starred</string>
<string name="shuffle.title">Shuffle By</string>
<string name="shuffle.startYear">Start Year:</string>
diff --git a/res/xml/mostrecent_syncadapter.xml b/res/xml/mostrecent_syncadapter.xml
new file mode 100644
index 00000000..9e76182a
--- /dev/null
+++ b/res/xml/mostrecent_syncadapter.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
+ android:contentAuthority="github.daneren2005.dsub.mostrecent.provider"
+ android:accountType="subsonic.org"
+ android:userVisible="true"
+ android:supportsUploading="false"
+ android:allowParallelSyncs="false"
+ android:isAlwaysSyncable="true"/> \ No newline at end of file
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 6756a5d8..4355d890 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -192,6 +192,18 @@
android:summary="@string/settings.sync_wifi_summary"
android:key="syncWifi"
android:defaultValue="true"/>
+
+ <CheckBoxPreference
+ android:title="@string/settings.sync_starred"
+ android:summary="@string/settings.sync_starred_summary"
+ android:key="syncStarred"
+ android:defaultValue="false"/>
+
+ <CheckBoxPreference
+ android:title="@string/settings.sync_most_recent"
+ android:summary="@string/settings.sync_most_recent_summary"
+ android:key="syncMostRecent"
+ android:defaultValue="false"/>
</PreferenceCategory>
<PreferenceCategory
diff --git a/res/xml/starred_syncadapter.xml b/res/xml/starred_syncadapter.xml
new file mode 100644
index 00000000..4d065e93
--- /dev/null
+++ b/res/xml/starred_syncadapter.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
+ android:contentAuthority="github.daneren2005.dsub.starred.provider"
+ android:accountType="subsonic.org"
+ android:userVisible="true"
+ android:supportsUploading="false"
+ android:allowParallelSyncs="false"
+ android:isAlwaysSyncable="true"/> \ No newline at end of file