mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
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…
x
Reference in New Issue
Block a user