From 87a1c60075617c1b2eee1800261302f19fc2d4b4 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 3 Jun 2022 20:07:53 +0200 Subject: [PATCH] hide play btn in miniplayer --- .../main/java/com/github/libretube/fragments/PlayerFragment.kt | 2 ++ 1 file changed, 2 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 516dd3cb3..7cd694a00 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -178,12 +178,14 @@ class PlayerFragment : Fragment() { val mainMotionLayout = mainActivity.findViewById(R.id.mainMotionLayout) if (currentId == eId) { + view.findViewById(R.id.exo_play_pause).visibility = View.GONE view.findViewById(R.id.quality_select).visibility = View.GONE 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 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