Make state restore use names instead of ids

Make it so that PlaybackStateDatabase stores the item data for PlaybackState/QueueItems as strings instead of ids, as ids are too volitaile if the music library changes.
This commit is contained in:
OxygenCobalt
2020-12-24 11:30:23 -07:00
parent 51a5e9fd63
commit 940746f248
10 changed files with 75 additions and 55 deletions
+4 -4
View File
@@ -63,8 +63,8 @@ dependencies {
// General
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.activity:activity-ktx:1.2.0-beta02'
implementation 'androidx.fragment:fragment-ktx:1.3.0-beta02'
implementation 'androidx.activity:activity-ktx:1.2.0-rc01'
implementation 'androidx.fragment:fragment-ktx:1.3.0-rc01'
// Layout
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
@@ -100,7 +100,7 @@ dependencies {
implementation 'io.coil-kt:coil:0.13.0'
// Material
implementation 'com.google.android.material:material:1.3.0-alpha04'
implementation 'com.google.android.material:material:1.3.0-beta01'
// Fast-Scroll
implementation 'com.reddit:indicator-fast-scroll:1.3.0'
@@ -111,7 +111,7 @@ dependencies {
// --- DEV ---
// Lint
ktlint "com.pinterest:ktlint:0.37.2"
ktlint "com.pinterest:ktlint:0.40.0"
// Memory Leak checking
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'