This commit is contained in:
Bnyro 2022-06-24 15:03:29 +02:00
parent 6682101c06
commit 108a1d90b0
2 changed files with 3 additions and 22 deletions

View File

@ -259,8 +259,9 @@ class PlayerFragment : Fragment() {
} }
// FullScreen button trigger // FullScreen button trigger
view.findViewById<ImageButton>(R.id.fullscreen).setOnClickListener { val fullScreenButton = view.findViewById<ImageButton>(R.id.fullscreen)
// remember to hide everything when new thing added fullScreenButton.setOnClickListener {
exoPlayerView.hideController()
if (!isFullScreen) { if (!isFullScreen) {
with(motionLayout) { with(motionLayout) {
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1) getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)

View File

@ -136,14 +136,6 @@
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layoutDirection="ltr"> android:layoutDirection="ltr">
<ImageButton
android:id="@id/exo_vr"
style="@style/ExoStyledControls.Button.Bottom.VR" />
<ImageButton
android:id="@id/exo_shuffle"
style="@style/ExoStyledControls.Button.Bottom.Shuffle" />
<ImageButton <ImageButton
android:id="@id/exo_repeat_toggle" android:id="@id/exo_repeat_toggle"
style="@style/ExoStyledControls.Button.Bottom.RepeatToggle" /> style="@style/ExoStyledControls.Button.Bottom.RepeatToggle" />
@ -160,14 +152,6 @@
android:id="@+id/fullscreen" android:id="@+id/fullscreen"
style="@style/ExoStyledControls.Button.Bottom.FullScreen" /> style="@style/ExoStyledControls.Button.Bottom.FullScreen" />
<ImageButton
android:id="@id/exo_fullscreen"
style="@style/ExoStyledControls.Button.Bottom.FullScreen" />
<ImageButton
android:id="@id/exo_overflow_show"
style="@style/ExoStyledControls.Button.Bottom.OverflowShow" />
</LinearLayout> </LinearLayout>
<HorizontalScrollView <HorizontalScrollView
@ -226,10 +210,6 @@
android:gravity="center_vertical" android:gravity="center_vertical"
android:layoutDirection="ltr"> android:layoutDirection="ltr">
<ImageButton
android:id="@id/exo_minimal_fullscreen"
style="@style/ExoStyledControls.Button.Bottom.FullScreen" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout