Add fastscroller to updates and history
This commit is contained in:
@@ -64,6 +64,7 @@ class HistoryController :
|
||||
adapter = HistoryAdapter(this@HistoryController)
|
||||
binding.recycler.setHasFixedSize(true)
|
||||
binding.recycler.adapter = adapter
|
||||
adapter?.fastScroller = binding.fastScroller
|
||||
}
|
||||
|
||||
override fun onDestroyView(view: View) {
|
||||
|
||||
@@ -93,6 +93,7 @@ class UpdatesController :
|
||||
binding.recycler.setHasFixedSize(true)
|
||||
adapter = UpdatesAdapter(this@UpdatesController)
|
||||
binding.recycler.adapter = adapter
|
||||
adapter?.fastScroller = binding.fastScroller
|
||||
|
||||
binding.recycler.scrollStateChanges()
|
||||
.onEach {
|
||||
|
||||
Reference in New Issue
Block a user