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
view.findViewById<ImageButton>(R.id.fullscreen).setOnClickListener {
// remember to hide everything when new thing added
val fullScreenButton = view.findViewById<ImageButton>(R.id.fullscreen)
fullScreenButton.setOnClickListener {
exoPlayerView.hideController()
if (!isFullScreen) {
with(motionLayout) {
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)

View File

@ -136,14 +136,6 @@
android:layout_marginBottom="10dp"
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
android:id="@id/exo_repeat_toggle"
style="@style/ExoStyledControls.Button.Bottom.RepeatToggle" />
@ -160,14 +152,6 @@
android:id="@+id/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>
<HorizontalScrollView
@ -226,10 +210,6 @@
android:gravity="center_vertical"
android:layoutDirection="ltr">
<ImageButton
android:id="@id/exo_minimal_fullscreen"
style="@style/ExoStyledControls.Button.Bottom.FullScreen" />
</LinearLayout>
<LinearLayout