Merge pull request #5730 from Bnyro/master

fix: crash after resuming from locked screen with comments/chapters opened
This commit is contained in:
Bnyro 2024-03-12 11:50:26 +01:00 committed by GitHub
commit 4cf992a1e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}