diff --git a/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java b/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java index 8a4fb62da..8a5844a43 100644 --- a/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java @@ -219,11 +219,10 @@ public final class MainVideoPlayer extends AppCompatActivity getWindow().getAttributes().screenBrightness); if (playerImpl == null) return; - if (isBackPressed) { - playerImpl.destroy(); - } else { + if (!isBackPressed) { playerImpl.minimize(); } + playerImpl.destroy(); isInMultiWindow = false; isBackPressed = false; @@ -465,7 +464,8 @@ public final class MainVideoPlayer extends AppCompatActivity onFullScreenButtonClicked(); break; case PlayerHelper.MinimizeMode.MINIMIZE_ON_EXIT_MODE_NONE: - destroy(); + default: + // No action break; } }