Add fastscroller to updates and history

This commit is contained in:
arkon
2020-05-16 10:17:09 -04:00
parent 8cd27a199d
commit 1cf74a5396
6 changed files with 27 additions and 8 deletions
@@ -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 {