From 9eafffe712bae18b7765a1473c0a64b91cb39957 Mon Sep 17 00:00:00 2001 From: Praveen Rajput Date: Sun, 29 Jan 2023 21:50:34 +0530 Subject: [PATCH] Closes comments on auto play video change. Fixes #2898 --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 3 +++ 1 file changed, 3 insertions(+) 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 452907764..d368393f3 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 @@ -815,6 +815,9 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions { // play the next video playVideo() + + // close comment bottom-sheet for next video + commentsViewModel.commentsSheetDismiss?.invoke() } }