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
@@ -4,6 +4,13 @@
xmlns:tools="http://schemas.android.com/tools"
app:startDestination="@id/home_fragment">
<!--
Now, it would be quite cool if we could implement shared element transitions
between elements in this navigation web. Sadly though, the shared element transition
system is filled with so many bugs and visual errors to make this a terrible idea.
Just use the boring, yet sane and functional fade transitions.
-->
<fragment
android:id="@+id/artist_detail_fragment"
android:name="org.oxycblt.auxio.detail.ArtistDetailFragment"