mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 15:05:19 +00:00
Fixing scroll when getting new messages
This commit is contained in:
parent
6f32978cc7
commit
da83df2206
@ -2471,7 +2471,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
|||||||
// Note: The adapter itemCount is zero based - so calling this with the itemCount in
|
// Note: The adapter itemCount is zero based - so calling this with the itemCount in
|
||||||
// a non-zero based manner scrolls us to the bottom of the last message (including
|
// a non-zero based manner scrolls us to the bottom of the last message (including
|
||||||
// to the bottom of long messages as required by Jira SES-789 / GitHub 1364).
|
// to the bottom of long messages as required by Jira SES-789 / GitHub 1364).
|
||||||
recyclerView.scrollToPosition(adapter.itemCount)
|
recyclerView.smoothScrollToPosition(adapter.itemCount)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user