Merge pull request #6542 from Bnyro/master

fix: pip controls don't work if auto-PiP is disabled
This commit is contained in:
Bnyro 2024-09-26 16:05:52 +02:00 committed by GitHub
commit 6c96b713a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)
}