From 3c2b8cc69974f76bff8ceae5676b621511cad3cb Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 19 Sep 2020 18:22:44 +0200 Subject: [PATCH] release 1.1.0-a --- .../main/java/app/fedilab/fedilabtube/PeertubeActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index b630253..619913f 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -734,7 +734,7 @@ public class PeertubeActivity extends AppCompatActivity { } private void enterVideoMode() { - if (playInMinimized && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && player != null && player.isPlaying()) { + if (playInMinimized && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && player != null) { MediaSessionCompat mediaSession = new MediaSessionCompat(this, getPackageName()); MediaSessionConnector mediaSessionConnector = new MediaSessionConnector(mediaSession); mediaSessionConnector.setPlayer(player); @@ -747,7 +747,7 @@ public class PeertubeActivity extends AppCompatActivity { @Override public void onBackPressed() { - if (playInMinimized && player != null && player.isPlaying()) { + if (playInMinimized && player != null) { enterVideoMode(); } else { super.onBackPressed();