fix: pip controls don't work if auto-PiP is disabled

This commit is contained in:
Bnyro 2024-09-26 16:05:35 +02:00
parent 97708e2069
commit 217d671a34

View File

@ -244,7 +244,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
private val playerListener = object : Player.Listener {
override fun onIsPlayingChanged(isPlaying: Boolean) {
if (PlayerHelper.pipEnabled) {
if (PlayerHelper.pipEnabled || PictureInPictureCompat.isInPictureInPictureMode(mainActivity)) {
PictureInPictureCompat.setPictureInPictureParams(requireActivity(), pipParams)
}