From 62233551eb3cc0e69fae8837beb2965438a8ddf2 Mon Sep 17 00:00:00 2001 From: GilesMunn Date: Sun, 19 Jun 2022 13:44:39 +0100 Subject: [PATCH] Hidden progress bar from minimised mode --- .../main/java/com/github/libretube/fragments/PlayerFragment.kt | 3 +++ 1 file changed, 3 insertions(+) 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 65891c22e..fc5f44e5d 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -73,6 +73,7 @@ import com.google.android.exoplayer2.source.MediaSource import com.google.android.exoplayer2.source.MergingMediaSource import com.google.android.exoplayer2.source.ProgressiveMediaSource import com.google.android.exoplayer2.ui.AspectRatioFrameLayout +import com.google.android.exoplayer2.ui.DefaultTimeBar import com.google.android.exoplayer2.ui.PlayerNotificationManager import com.google.android.exoplayer2.ui.StyledPlayerView import com.google.android.exoplayer2.upstream.DataSource @@ -196,12 +197,14 @@ class PlayerFragment : Fragment() { view.findViewById(R.id.close_imageButton).visibility = View.GONE view.findViewById(R.id.quality_text).visibility = View.GONE view.findViewById(R.id.aspect_ratio_button).visibility = View.GONE + view.findViewById(R.id.exo_progress).visibility = View.GONE mainMotionLayout.progress = 1.toFloat() } else if (currentId == sId) { view.findViewById(R.id.exo_play_pause).visibility = View.VISIBLE view.findViewById(R.id.quality_select).visibility = View.VISIBLE view.findViewById(R.id.close_imageButton).visibility = View.VISIBLE view.findViewById(R.id.quality_text).visibility = View.VISIBLE + view.findViewById(R.id.exo_progress).visibility = View.VISIBLE view.findViewById(R.id.aspect_ratio_button) .visibility = View.VISIBLE mainMotionLayout.progress = 0.toFloat()