Fix isScrolledToBottom (#1217)

pull/1223/head
Andrew 2 years ago committed by GitHub
parent 331d523c45
commit 7d31af9eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,4 @@ fun Context.getColorFromAttr(
} }
val RecyclerView.isScrolledToBottom: Boolean val RecyclerView.isScrolledToBottom: Boolean
get() { get() = computeVerticalScrollOffset() + computeVerticalScrollExtent() >= computeVerticalScrollRange()
val contentHeight = height - (paddingTop + paddingBottom)
return computeVerticalScrollRange() == computeVerticalScrollOffset() + contentHeight
}

Loading…
Cancel
Save