Fix isScrolledToBottom (#1217)
This commit is contained in:
parent
331d523c45
commit
7d31af9eb0
|
@ -17,7 +17,4 @@ fun Context.getColorFromAttr(
|
|||
}
|
||||
|
||||
val RecyclerView.isScrolledToBottom: Boolean
|
||||
get() {
|
||||
val contentHeight = height - (paddingTop + paddingBottom)
|
||||
return computeVerticalScrollRange() == computeVerticalScrollOffset() + contentHeight
|
||||
}
|
||||
get() = computeVerticalScrollOffset() + computeVerticalScrollExtent() >= computeVerticalScrollRange()
|
||||
|
|
Loading…
Reference in New Issue