Skip to content
Snippets Groups Projects

CustomPiP: fix popup killed when leaving the app

Merged Duncan McNamara requested to merge Skantes/vlc-android:custom-pip-fix into master
2 files
+ 5
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -84,6 +84,9 @@ class PopupManager constructor(private val service: PlaybackService) : PlaybackS
fun removePopup() {
service.isInPiPMode.removeObserver(observer)
// If the popup is killed from the x button, isInPiPMode will still be true
// and when reopening the app will restart the video player
service.isInPiPMode.value = false
hideNotification()
val view = rootView ?: return
service.removeCallback(this)
Loading