Skip to content
Snippets Groups Projects
Verified Commit 58bfd8c5 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Another attempt at fixing the issue where buffer list position resets

parent 89feff85
No related branches found
No related tags found
No related merge requests found
Pipeline #244 failed
...@@ -267,7 +267,7 @@ class BufferViewConfigFragment : ServiceBoundFragment() { ...@@ -267,7 +267,7 @@ class BufferViewConfigFragment : ServiceBoundFragment() {
var hasRestoredChatListState = false var hasRestoredChatListState = false
listAdapter.setOnUpdateFinishedListener { listAdapter.setOnUpdateFinishedListener {
if (!hasRestoredChatListState) { if (!hasRestoredChatListState && it.isNotEmpty()) {
savedInstanceState?.getParcelable<Parcelable>(KEY_STATE_LIST) savedInstanceState?.getParcelable<Parcelable>(KEY_STATE_LIST)
?.let(chatList.layoutManager::onRestoreInstanceState) ?.let(chatList.layoutManager::onRestoreInstanceState)
hasRestoredChatListState = true hasRestoredChatListState = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment