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