recycler: fix fast scroll issues

Fix issues with the fast scroller, such as an improper thumb position
and strange item behavior stemming from dataset changes.
This commit is contained in:
Alexander Capehart
2022-09-02 20:13:47 -06:00
parent a8e6ccf031
commit 8a70ece442
6 changed files with 10 additions and 5 deletions
@@ -291,7 +291,7 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
}
private fun updateScrollbarState() {
if (computeVerticalScrollRange() <= height || childCount == 0) {
if (scrollRange <= height || childCount == 0) {
return
}