Twelve: Fix local data source playlists URI
Change-Id: Id7c8a2d02fdc3cea7fa5246a1450907643415434
diff --git a/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt b/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt
index a9f67ac..95fcb6b 100644
--- a/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt
+++ b/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt
@@ -533,16 +533,20 @@
/**
* Dummy internal database scheme.
*/
- private const val DATABASE_SCHEME = "twelvedatabase"
+ private const val DATABASE_SCHEME = "twelve_database"
/**
- * Dummy internal database [Uri].
+ * Dummy database playlists authority.
*/
- private val playlistsBaseUri = Uri.fromParts(
- DATABASE_SCHEME,
- "playlist",
- null
- )
+ private const val PLAYLISTS_AUTHORITY = "playlists"
+
+ /**
+ * Dummy internal database playlists [Uri].
+ */
+ private val playlistsBaseUri = Uri.Builder()
+ .scheme(DATABASE_SCHEME)
+ .authority(PLAYLISTS_AUTHORITY)
+ .build()
private fun org.lineageos.twelve.database.entities.Playlist.toModel() = Playlist(
ContentUris.withAppendedId(playlistsBaseUri, id),