From b073ef739124844b2f02cb98ce5eead1e75420eb Mon Sep 17 00:00:00 2001 From: oxy Date: Fri, 10 May 2024 00:31:07 +0800 Subject: [PATCH] fix: #135 --- .../src/main/java/com/m3u/features/stream/PlayerActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/features/stream/src/main/java/com/m3u/features/stream/PlayerActivity.kt b/features/stream/src/main/java/com/m3u/features/stream/PlayerActivity.kt index 30224b9bc..7ff4e3226 100644 --- a/features/stream/src/main/java/com/m3u/features/stream/PlayerActivity.kt +++ b/features/stream/src/main/java/com/m3u/features/stream/PlayerActivity.kt @@ -57,6 +57,7 @@ class PlayerActivity : ComponentActivity() { } } addOnPictureInPictureModeChangedListener { + isInPipMode = it.isInPictureInPictureMode if (!it.isInPictureInPictureMode && lifecycle.currentState !in arrayOf( Lifecycle.State.RESUMED, Lifecycle.State.STARTED