Missed scrollToPosition() -> scrollToPositionWithOffset()

This should make the scroll position more reliable.

Change-Id: Ideba69e14f122d0f93a6edad8d27612f7bc45f59
This commit is contained in:
SpiritCroc 2021-08-02 10:01:14 +02:00
parent 04e4ad0d6e
commit 3af5e6ea76

View File

@ -797,7 +797,7 @@ class RoomDetailFragment @Inject constructor(
roomDetailViewModel.timeline.restartWithEventId(null)
} else {
roomDetailViewModel.timeline.setInitialEventId(null)
layoutManager.scrollToPosition(0)
layoutManager.scrollToPositionWithOffset(0, 0)
}
}