From 3866317597537b77257121c94fb2d9a6bb1886e3 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 13 Oct 2020 16:35:51 +0200 Subject: [PATCH] some fixes --- .../java/app/fedilab/fedilabtube/PeertubeActivity.java | 2 ++ app/src/main/res/layout/activity_peertube.xml | 1 + app/src/main/res/layout/exo_playback_control_view.xml | 8 +------- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index 373decd..71407e8 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -874,6 +874,8 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd MediaSessionCompat mediaSession = new MediaSessionCompat(this, getPackageName()); MediaSessionConnector mediaSessionConnector = new MediaSessionConnector(mediaSession); mediaSessionConnector.setPlayer(player); + PlayerControlView controlView = playerView.findViewById(R.id.exo_controller); + controlView.hide(); playerView.setControllerAutoShow(false); mediaSession.setActive(true); enterPictureInPictureMode(); diff --git a/app/src/main/res/layout/activity_peertube.xml b/app/src/main/res/layout/activity_peertube.xml index f850452..b0455ab 100644 --- a/app/src/main/res/layout/activity_peertube.xml +++ b/app/src/main/res/layout/activity_peertube.xml @@ -47,6 +47,7 @@ diff --git a/app/src/main/res/layout/exo_playback_control_view.xml b/app/src/main/res/layout/exo_playback_control_view.xml index a11a6ae..a777771 100644 --- a/app/src/main/res/layout/exo_playback_control_view.xml +++ b/app/src/main/res/layout/exo_playback_control_view.xml @@ -15,6 +15,7 @@ android:layout_height="wrap_content" android:layout_gravity="bottom" android:background="#CC000000" + android:animateLayoutChanges="true" android:layoutDirection="ltr" android:orientation="vertical" tools:targetApi="28"> @@ -34,13 +35,6 @@ android:id="@id/exo_rew" style="@style/ExoMediaButton.Rewind" /> - - -