Skip to content

Commit

Permalink
Scroll on list post
Browse files Browse the repository at this point in the history
Fixes signalapp#7054

// FREEBIE
  • Loading branch information
moxie0 committed Oct 10, 2017
1 parent d40fea9 commit 4e45d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/thoughtcrime/securesms/ConversationFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public void releaseOutgoingMessage(long id) {

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()));
}
}

Expand Down

0 comments on commit 4e45d53

Please sign in to comment.