mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-11-17 03:54:27 +00:00
-Fixed minimizing to popup player does not destroying existing player when drawing over app permission is not granted.
This commit is contained in:
1 parent
2d39e65b5c
commit
4fbd1182c2
1 file changed
+4
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user