fix scroll position resetting on refresh
This commit is contained in:
parent
7e60d25a07
commit
86df932ce8
3 changed files with 6 additions and 2 deletions
|
|
@ -227,6 +227,11 @@ class ThreadActivity : SimpleActivity() {
|
|||
ArrayList()
|
||||
}
|
||||
|
||||
messages.sortBy { it.date }
|
||||
if (messages.size > MESSAGES_LIMIT) {
|
||||
messages = ArrayList(messages.takeLast(MESSAGES_LIMIT))
|
||||
}
|
||||
|
||||
setupParticipants()
|
||||
setupAdapter()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue