From b7c14a21867c4bd4b6ed034c415d5dd0e12e0e9f Mon Sep 17 00:00:00 2001 From: IndusAryan <125901294+IndusAryan@users.noreply.github.com> Date: Mon, 30 Oct 2023 13:51:58 +0530 Subject: [PATCH] Update PlayerFragment.kt --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 1 + 1 file changed, 1 insertion(+) 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 8aad90ac5..901cc47c5 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 @@ -406,6 +406,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { } binding.commentsToggle.setOnClickListener { + if (!this::streams.isInitialized) return@setOnClickListener // set the max height to not cover the currently playing video commentsViewModel.handleLink = this::handleLink updateMaxSheetHeight()