Fix crash reported by PlayStore (#2707)

This commit is contained in:
Benoit Marty 2021-02-15 22:53:29 +01:00 committed by Benoit Marty
parent 46615d698e
commit bec4af7c87
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ Improvements 🙌:
Bugfix 🐛: Bugfix 🐛:
- VoIP : fix audio devices output - VoIP : fix audio devices output
- Fix crash after initial sync on Dendrite - Fix crash after initial sync on Dendrite
- Fix crash reported by PlayStore (#2707)
Translations 🗣: Translations 🗣:
- -

View File

@ -52,6 +52,7 @@ import androidx.core.view.ViewCompat
import androidx.core.view.forEach import androidx.core.view.forEach
import androidx.core.view.isInvisible import androidx.core.view.isInvisible
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.ItemTouchHelper import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
@ -1030,7 +1031,7 @@ class RoomDetailFragment @Inject constructor(
} }
private fun updateJumpToReadMarkerViewVisibility() { private fun updateJumpToReadMarkerViewVisibility() {
views.jumpToReadMarkerView.post { viewLifecycleOwner.lifecycleScope.launchWhenResumed {
withState(roomDetailViewModel) { withState(roomDetailViewModel) {
val showJumpToUnreadBanner = when (it.unreadState) { val showJumpToUnreadBanner = when (it.unreadState) {
UnreadState.Unknown, UnreadState.Unknown,