From a5af986c137592738df6e3ee3af1a900eb20e325 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 26 Jan 2024 14:19:35 +0100 Subject: [PATCH] fix: don't toggle system bars in player fragment when locking player --- .../java/com/github/libretube/ui/views/CustomExoPlayerView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt index c951fe229..c0584b16a 100644 --- a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt +++ b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt @@ -146,7 +146,7 @@ open class CustomExoPlayerView( // change locked status isPlayerLocked = !isPlayerLocked - toggleSystemBars(!isPlayerLocked) + if (isFullscreen()) toggleSystemBars(!isPlayerLocked) } resizeMode = when (resizeModePref) {