diff options
author | Moritz Maxeiner <mm@ucw.sh> | 2020-09-21 21:02:22 +0200 |
---|---|---|
committer | Moritz Maxeiner <mm@ucw.sh> | 2020-09-26 14:53:23 +0200 |
commit | 45dfb9653cf5fcfe7ca5e3a20437aeee64b9ecb1 (patch) | |
tree | b83d412ccb05677134646d21a8efacb5c1dcde77 /app/src/main | |
parent | 72bef3c7ae8fd72fdba25d41df7e7c517cf50e8c (diff) | |
download | dsub-45dfb9653cf5fcfe7ca5e3a20437aeee64b9ecb1.tar.gz dsub-45dfb9653cf5fcfe7ca5e3a20437aeee64b9ecb1.tar.bz2 dsub-45dfb9653cf5fcfe7ca5e3a20437aeee64b9ecb1.zip |
Derive subsonic account type descriptor from applicationId
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/util/Constants.java | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/authenticator.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/mostrecent_syncadapter.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/playlists_syncadapter.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/podcasts_syncadapter.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/starred_syncadapter.xml | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/Constants.java b/app/src/main/java/github/daneren2005/dsub/util/Constants.java index 744c2469..e62b93f9 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/Constants.java +++ b/app/src/main/java/github/daneren2005/dsub/util/Constants.java @@ -222,7 +222,7 @@ public final class Constants { // Account prefs public static final String SYNC_ACCOUNT_NAME = "Subsonic Account"; - public static final String SYNC_ACCOUNT_TYPE = "subsonic.org"; + public static final String SYNC_ACCOUNT_TYPE = BuildConfig.APPLICATION_ID + ".subsonic"; public static final String SYNC_ACCOUNT_PLAYLIST_AUTHORITY = "github.daneren2005.dsub.playlists.provider"; public static final String SYNC_ACCOUNT_PODCAST_AUTHORITY = "github.daneren2005.dsub.podcasts.provider"; public static final String SYNC_ACCOUNT_STARRED_AUTHORITY = "github.daneren2005.dsub.starred.provider"; diff --git a/app/src/main/res/xml/authenticator.xml b/app/src/main/res/xml/authenticator.xml index 3055240b..23e4621a 100644 --- a/app/src/main/res/xml/authenticator.xml +++ b/app/src/main/res/xml/authenticator.xml @@ -1,7 +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:accountType="@string/account_type.subsonic" android:icon="@drawable/launch" android:smallIcon="@drawable/launch" android:label="@string/common.appname"/>
\ No newline at end of file diff --git a/app/src/main/res/xml/mostrecent_syncadapter.xml b/app/src/main/res/xml/mostrecent_syncadapter.xml index 0195edeb..8c6dada2 100644 --- a/app/src/main/res/xml/mostrecent_syncadapter.xml +++ b/app/src/main/res/xml/mostrecent_syncadapter.xml @@ -1,7 +1,7 @@ <?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:accountType="@string/account_type.subsonic" android:userVisible="true" android:supportsUploading="false" android:allowParallelSyncs="false" diff --git a/app/src/main/res/xml/playlists_syncadapter.xml b/app/src/main/res/xml/playlists_syncadapter.xml index 6c56557b..986f11b4 100644 --- a/app/src/main/res/xml/playlists_syncadapter.xml +++ b/app/src/main/res/xml/playlists_syncadapter.xml @@ -1,7 +1,7 @@ <?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:accountType="@string/account_type.subsonic" android:userVisible="true" android:supportsUploading="false" android:allowParallelSyncs="false" diff --git a/app/src/main/res/xml/podcasts_syncadapter.xml b/app/src/main/res/xml/podcasts_syncadapter.xml index 52340ae4..7a943c32 100644 --- a/app/src/main/res/xml/podcasts_syncadapter.xml +++ b/app/src/main/res/xml/podcasts_syncadapter.xml @@ -1,7 +1,7 @@ <?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:accountType="@string/account_type.subsonic" android:userVisible="true" android:supportsUploading="false" android:allowParallelSyncs="false" diff --git a/app/src/main/res/xml/starred_syncadapter.xml b/app/src/main/res/xml/starred_syncadapter.xml index d1d0e1e2..f325da26 100644 --- a/app/src/main/res/xml/starred_syncadapter.xml +++ b/app/src/main/res/xml/starred_syncadapter.xml @@ -1,7 +1,7 @@ <?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:accountType="@string/account_type.subsonic" android:userVisible="true" android:supportsUploading="false" android:allowParallelSyncs="false" |