Make Queue nav destination

Fix a heisenleak by making QueueFragment a navigation destination instead of being directly instantiated.
This commit is contained in:
OxygenCobalt
2020-11-07 09:38:09 -07:00
parent c664d22a43
commit bc7950e7af
8 changed files with 59 additions and 11 deletions
+10 -1
View File
@@ -115,5 +115,14 @@
android:id="@+id/playback_fragment"
android:name="org.oxycblt.auxio.playback.PlaybackFragment"
android:label="PlaybackFragment"
tools:layout="@layout/fragment_playback" />
tools:layout="@layout/fragment_playback" >
<action
android:id="@+id/action_show_queue"
app:destination="@id/queue_fragment" />
</fragment>
<dialog
android:id="@+id/queue_fragment"
android:name="org.oxycblt.auxio.playback.queue.QueueFragment"
android:label="QueueFragment"
tools:layout="@layout/fragment_queue"/>
</navigation>