CustomPiP: fix popup killed when leaving the app
Compare changes
Files
2@@ -84,6 +84,9 @@ class PopupManager constructor(private val service: PlaybackService) : PlaybackS
When leaving the app with custom pip the VideoPlayerActivity onStop() is called which sets isInPiPMode to false which kills the popup. onStop isn't called with the system's pip. To fix this, just check if service.isPlayingPopup is true, it's false for system's pip.
VideoLAN code repository instance