mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Scroll to the real bottom
the element at the bottom might be larger than the display... Change-Id: I52ac882b1b192f9d55c12549c82de46db025c12e
This commit is contained in:
parent
566feaecc1
commit
b0206cbc6e
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ class ScrollOnNewMessageCallback(private val layoutManager: LinearLayoutManager,
|
|||
while (newTimelineEventIds.lastOrNull() != firstNewItemIds) {
|
||||
newTimelineEventIds.removeLastOrNull()
|
||||
}
|
||||
layoutManager.scrollToPosition(0)
|
||||
//layoutManager.scrollToPosition(0)
|
||||
layoutManager.scrollToPositionWithOffset(0, Integer.MAX_VALUE)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue