Add FastScroller to downloads

(cherry picked from commit 0b8b13d0bb7f7bc8f0939f1ae1b91cd53fc2bd19)
This commit is contained in:
arkon 2020-06-01 08:55:37 -04:00 committed by Jobobby04
parent 852e340c21
commit 5a49868764
2 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class DownloadController :
adapter = DownloadAdapter(this@DownloadController)
binding.recycler.adapter = adapter
adapter?.isHandleDragEnabled = true
adapter?.fastScroller = binding.fastScroller
// Set the layout manager for the recycler and fixed size.
binding.recycler.layoutManager = LinearLayoutManager(view.context)

View File

@ -14,6 +14,14 @@
android:paddingBottom="@dimen/fab_list_padding"
tools:listitem="@layout/download_item" />
<eu.kanade.tachiyomi.ui.library.MaterialFastScroll
android:id="@+id/fast_scroller"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="end"
app:fastScrollerBubbleEnabled="false"
tools:visibility="visible" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
style="@style/Theme.Widget.FAB"