From 108a1d90b0519738fefc0d7170af5b7217c6d411 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 24 Jun 2022 15:03:29 +0200 Subject: [PATCH] cleanup --- .../libretube/fragments/PlayerFragment.kt | 5 +++-- .../layout/exo_styled_player_control_view.xml | 20 ------------------- 2 files changed, 3 insertions(+), 22 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 54aa2cad5..8e63a08ff 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -259,8 +259,9 @@ class PlayerFragment : Fragment() { } // FullScreen button trigger - view.findViewById(R.id.fullscreen).setOnClickListener { - // remember to hide everything when new thing added + val fullScreenButton = view.findViewById(R.id.fullscreen) + fullScreenButton.setOnClickListener { + exoPlayerView.hideController() if (!isFullScreen) { with(motionLayout) { getConstraintSet(R.id.start).constrainHeight(R.id.player, -1) diff --git a/app/src/main/res/layout/exo_styled_player_control_view.xml b/app/src/main/res/layout/exo_styled_player_control_view.xml index eb743edcc..89236cece 100644 --- a/app/src/main/res/layout/exo_styled_player_control_view.xml +++ b/app/src/main/res/layout/exo_styled_player_control_view.xml @@ -136,14 +136,6 @@ android:layout_marginBottom="10dp" android:layoutDirection="ltr"> - - - - @@ -160,14 +152,6 @@ android:id="@+id/fullscreen" style="@style/ExoStyledControls.Button.Bottom.FullScreen" /> - - - - - -