From a0aabdf5a487d5a82ddd95afb507d581888be81c Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 10 Jul 2022 09:51:40 +0200 Subject: [PATCH] remove settings button in player --- .../libretube/fragments/PlayerFragment.kt | 2 +- .../layout/exo_styled_player_control_view.xml | 43 ++++++++----------- 2 files changed, 19 insertions(+), 26 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 10d12df3a..cdade4409 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -1095,7 +1095,7 @@ class PlayerFragment : Fragment() { } } - playerBinding.qualityLinLayout.setOnClickListener { + playerBinding.qualityText.setOnClickListener { // Dialog for quality selection val builder: MaterialAlertDialogBuilder? = activity?.let { MaterialAlertDialogBuilder(it) 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 9aec943b4..5363a9d74 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 @@ -74,34 +74,31 @@ android:id="@+id/aspect_ratio_button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="12dp" + android:layout_marginHorizontal="5dp" android:background="#00FFFFFF" android:padding="@dimen/exo_icon_padding" android:src="@drawable/ic_aspect_ratio" /> - + android:layout_height="wrap_content" + android:layout_marginHorizontal="5dp" + android:layout_gravity="center" + android:padding="@dimen/exo_icon_padding" + android:text="1x" + android:textColor="#FFFFFF" /> - + - - - @@ -183,10 +180,6 @@ android:id="@id/exo_subtitle" style="@style/ExoStyledControls.Button.Bottom.CC" /> - -