mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 00:23:40 +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
|
val RecyclerView.isScrolledToBottom: Boolean
|
||||||
get() {
|
get() = computeVerticalScrollOffset() + computeVerticalScrollExtent() >= computeVerticalScrollRange()
|
||||||
val contentHeight = height - (paddingTop + paddingBottom)
|
|
||||||
return computeVerticalScrollRange() == computeVerticalScrollOffset() + contentHeight
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user