Scroll on list post

Fixes #7054

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-10-10 10:00:24 -07:00
parent d40fea9423
commit 4e45d53bd9
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ public class ConversationFragment extends Fragment
private void scrollToLastSeenPosition(final int lastSeenPosition) {
if (lastSeenPosition > 0) {
Util.runOnMain(() -> ((LinearLayoutManager)list.getLayoutManager()).scrollToPositionWithOffset(lastSeenPosition, list.getHeight()));
list.post(() -> ((LinearLayoutManager)list.getLayoutManager()).scrollToPositionWithOffset(lastSeenPosition, list.getHeight()));
}
}