diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index e8d168399..5bce4ee4e 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -1392,7 +1392,9 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions { fun onUserLeaveHint() { if (usePiP() && shouldStartPiP()) { activity?.enterPictureInPictureMode(getPipParams()) + return } + if (!PlayerHelper.pipEnabled) exoPlayer.pause() } @RequiresApi(Build.VERSION_CODES.O)