playback: fix state restore regression

Fix a state restore issue that would cause the parent to restore
incorrectly.

At some point, I accidentally used the index for the PlaybackMode field
when restoring the playbackState. This resulted in the playback mode
effectively reverting to ALL_SONGS and causing a number of subtle
issues.
This commit is contained in:
OxygenCobalt
2022-06-02 09:20:31 -06:00
parent 07127403ff
commit 182b08ab65
11 changed files with 98 additions and 79 deletions
+1
View File
@@ -8,6 +8,7 @@
#### What's Fixed
- Fixed crash when seeking to the end of a track as the track changed to a track with a lower duration
- Fixed regression where GadgetBridge media controls would no longer work
- Fixed issue where the album/artist/genre would not be correctly restored
#### Dev/Meta
- Switched from `LiveData` to `StateFlow`