From 8b66c4030f0a198ee7804dfdd1eb098c457e068a Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 16 Oct 2020 17:41:07 +0200 Subject: [PATCH] Some fixes --- .../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 65125f2..3ae660f 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -860,9 +860,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd @Override public void onReceive(Context context, Intent intent) { String strAction = intent.getAction(); - if (strAction.equals(Intent.ACTION_SCREEN_OFF) || strAction.equals(Intent.ACTION_SCREEN_ON)) { + if (strAction.equals(Intent.ACTION_SCREEN_OFF)) { if (player != null && isPlayInMinimized) { - player.setPlayWhenReady(!strAction.equals(Intent.ACTION_SCREEN_OFF)); + player.setPlayWhenReady(false); } } }