diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-11-26 22:27:54 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-11-26 22:27:54 -0800 |
commit | 71ab3f89e50028dffa24cec8ebc71d8bb08d85a1 (patch) | |
tree | 76bd953f389f06f2bc89fbc6ee5b7ede816ec81c /res/xml | |
parent | d73d0120971ccae1fa76a8a78534791bf0634e9d (diff) | |
parent | f792e70df9a953bc4b7189e0847c7245c914a43e (diff) | |
download | dsub-71ab3f89e50028dffa24cec8ebc71d8bb08d85a1.tar.gz dsub-71ab3f89e50028dffa24cec8ebc71d8bb08d85a1.tar.bz2 dsub-71ab3f89e50028dffa24cec8ebc71d8bb08d85a1.zip |
Merge SyncAdapter
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/authenticator.xml | 7 | ||||
-rw-r--r-- | res/xml/playlists_syncadapter.xml | 8 | ||||
-rw-r--r-- | res/xml/podcasts_syncadapter.xml | 8 | ||||
-rw-r--r-- | res/xml/settings.xml | 23 |
4 files changed, 46 insertions, 0 deletions
diff --git a/res/xml/authenticator.xml b/res/xml/authenticator.xml new file mode 100644 index 00000000..ce62b117 --- /dev/null +++ b/res/xml/authenticator.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?>
+<account-authenticator
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:accountType="subsonic.org"
+ android:icon="@drawable/launch"
+ android:smallIcon="@drawable/launch"
+ android:label="@string/common.appname"/>
\ No newline at end of file diff --git a/res/xml/playlists_syncadapter.xml b/res/xml/playlists_syncadapter.xml new file mode 100644 index 00000000..418f3f49 --- /dev/null +++ b/res/xml/playlists_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.playlists.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/podcasts_syncadapter.xml b/res/xml/podcasts_syncadapter.xml new file mode 100644 index 00000000..21f421f6 --- /dev/null +++ b/res/xml/podcasts_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.podcasts.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 99233785..6756a5d8 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -172,6 +172,29 @@ </PreferenceCategory> <PreferenceCategory + android:title="@string/settings.sync_title"> + + <CheckBoxPreference + android:title="@string/settings.sync_enabled" + android:summary="@string/settings.sync_enabled_summary" + android:key="syncEnabled" + android:defaultValue="true"/> + + <ListPreference + android:title="@string/settings.sync_interval" + android:key="syncInterval" + android:defaultValue="60" + android:entryValues="@array/syncIntervalValues" + android:entries="@array/syncIntervalNames"/> + + <CheckBoxPreference + android:title="@string/settings.sync_wifi" + android:summary="@string/settings.sync_wifi_summary" + android:key="syncWifi" + android:defaultValue="true"/> + </PreferenceCategory> + + <PreferenceCategory android:title="@string/settings.other_title"> <CheckBoxPreference |