playback: band-aid scroll position confusion

Band-aid an issue where the scroll position of any RecyclerView in a
PlaybackBarLayout would get consfused because while the main view was
present, the fragment was not inflated yet so that it would not show.
This is [kindof] fixed by moving the fragment instantiation to the
view initialization. However, sometimes the fragment might still not
be inflated. The fragment will likely be replaced with a view
eventually.
This commit is contained in:
OxygenCobalt
2021-10-31 10:03:52 -06:00
parent e779698746
commit ae39054b63
2 changed files with 61 additions and 43 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
tools:context=".detail.DetailFragment">
<org.oxycblt.auxio.playback.PlaybackBarLayout
<FrameLayout
android:id="@+id/bar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -38,5 +38,5 @@
tools:listitem="@layout/item_detail" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</org.oxycblt.auxio.playback.PlaybackBarLayout>
</FrameLayout>
</layout>