fix: crash after resuming from locked screen with comments/chapters opened

This commit is contained in:
Bnyro 2024-03-12 11:49:55 +01:00
parent 376681979c
commit 78a9f8aee6

View File

@ -1040,9 +1040,9 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
// start to play the next video
playVideo()
// close comment bottom sheet for next video
commentsViewModel.commentsSheetDismiss?.invoke()
runCatching { commentsViewModel.commentsSheetDismiss?.invoke() }
// kill the chapters bottom sheet
chaptersBottomSheet?.dismiss()
runCatching { chaptersBottomSheet?.dismiss() }
chaptersBottomSheet = null
}