fix scroll position resetting on refresh
This commit is contained in:
parent
7e60d25a07
commit
86df932ce8
|
@ -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()
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ package com.simplemobiletools.smsmessenger.helpers
|
|||
import android.content.Context
|
||||
import com.simplemobiletools.commons.helpers.BaseConfig
|
||||
import com.simplemobiletools.smsmessenger.models.Conversation
|
||||
import java.util.HashSet
|
||||
|
||||
class Config(context: Context) : BaseConfig(context) {
|
||||
companion object {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
open class ThreadDateTime(val date: Int, val simID: String) : ThreadItem()
|
||||
data class ThreadDateTime(val date: Int, val simID: String) : ThreadItem()
|
||||
|
|
Loading…
Reference in New Issue