mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 13:00:18 +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) {
|
while (newTimelineEventIds.lastOrNull() != firstNewItemIds) {
|
||||||
newTimelineEventIds.removeLastOrNull()
|
newTimelineEventIds.removeLastOrNull()
|
||||||
}
|
}
|
||||||
layoutManager.scrollToPosition(0)
|
//layoutManager.scrollToPosition(0)
|
||||||
|
layoutManager.scrollToPositionWithOffset(0, Integer.MAX_VALUE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue