Skip to content
Snippets Groups Projects
Commit 156b3ff6 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes a crash in backendthread

parent 271023d2
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,9 @@ class MessageListFragment : ServiceBoundFragment() {
val firstVisibleItemPosition = linearLayoutManager.findFirstVisibleItemPosition()
val firstVisibleMessageId = adapter[firstVisibleItemPosition]?.messageId
runInBackground {
activity?.runOnUiThread {
list?.let(adapter::submitList)
}
if (firstVisibleItemPosition < 2) {
activity?.runOnUiThread { messageList.scrollToPosition(0) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment