From 78a9f8aee6b9a6e42191d3af082b12bc27dccb5b Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 12 Mar 2024 11:49:55 +0100 Subject: [PATCH] fix: crash after resuming from locked screen with comments/chapters opened --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index 841cf54ec..1e0325944 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -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 }