From b2bb6f174e1730981ee8da7b019a7059cafd9bc6 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 27 Jun 2022 19:27:53 +0200 Subject: [PATCH] fix lock mode --- .../java/com/github/libretube/fragments/PlayerFragment.kt | 6 ++++-- app/src/main/res/layout/exo_styled_player_control_view.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index 87f7bdf55..57755dad2 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -952,12 +952,14 @@ class PlayerFragment : Fragment() { } private fun lockPlayer(isLocked: Boolean) { - val visibility = if (isLocked) View.VISIBLE else View.GONE - exoPlayerView.findViewById(R.id.controls_top_right).visibility = visibility + val visibility = if (isLocked) View.VISIBLE else View.INVISIBLE + exoPlayerView.findViewById(R.id.exo_top_bar_right).visibility = visibility exoPlayerView.findViewById(R.id.exo_play_pause).visibility = visibility exoPlayerView.findViewById