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:
@@ -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>
|
||||
Reference in New Issue
Block a user