mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Fix crash reported by PlayStore (#2707)
Change-Id: I37a945d56035a398f8f2a05f2a3525b40258402d
This commit is contained in:
parent
c71d5b6aef
commit
87dc80d2e6
1 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ import androidx.core.view.ViewCompat
|
|||
import androidx.core.view.forEach
|
||||
import androidx.core.view.isInvisible
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import androidx.recyclerview.widget.ItemTouchHelper
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
|
@ -1124,7 +1125,7 @@ class RoomDetailFragment @Inject constructor(
|
|||
}
|
||||
|
||||
private fun updateJumpToReadMarkerViewVisibility() {
|
||||
views.jumpToReadMarkerView.post {
|
||||
viewLifecycleOwner.lifecycleScope.launchWhenResumed {
|
||||
withState(roomDetailViewModel) {
|
||||
val showJumpToUnreadBanner = when (it.unreadState) {
|
||||
UnreadState.Unknown,
|
||||
|
|
Loading…
Add table
Reference in a new issue