We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a34d78 commit c602bc2Copy full SHA for c602bc2
app/src/main/java/com/mrikso/anitube/app/ui/player/PlayerActivity.java
@@ -666,7 +666,7 @@ else if (rational.floatValue() < rationalLimitTall.floatValue())
666
}
667
668
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
669
- pipParams.setAutoEnterEnabled(true);
+ pipParams.setAutoEnterEnabled(isPlaying);
670
671
672
return pipParams.build();
@@ -944,7 +944,7 @@ public void onResume() {
944
@Override
945
protected void onUserLeaveHint() {
946
super.onUserLeaveHint();
947
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S && !isInPictureInPictureMode()) {
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S && !isInPictureInPictureMode() && exoPlayer.isPlaying()) {
948
enterPiP();
949
950
0 commit comments