From d6a23ac0de2a9bb70d121242507da51c5917d42f Mon Sep 17 00:00:00 2001 From: Kai Date: Mon, 11 Aug 2025 14:48:23 -0500 Subject: [PATCH] fix PiP issue reproduction steps - play a video - swipe home to enter PiP - minimize the video and then close it with the X - swipe home (PiP will launch even though it shouldn't because nothing is playing) Changelog: changed --- .../platformplayer/fragment/mainactivity/main/VideoDetailView.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt b/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt index 5382ef13..7ac846f3 100644 --- a/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt +++ b/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt @@ -1207,6 +1207,7 @@ class VideoDetailView : ConstraintLayout { _taskLoadVideo.cancel(); handleStop(); _didStop = true; + onShouldEnterPictureInPictureChanged.emit() Logger.i(TAG, "_didStop set to true"); StatePlayer.instance.rotationLock = false;