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
  1. Oct 24, 2024
    • Duncan McNamara's avatar
      CustomPiP: fix popup killed when leaving the app · 5e643209
      Duncan McNamara authored and Nicolas Pomepuy's avatar Nicolas Pomepuy committed
      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.
      5e643209
Loading