mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
Merge pull request #6542 from Bnyro/master
fix: pip controls don't work if auto-PiP is disabled
This commit is contained in:
commit
6c96b713a4
@ -244,7 +244,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
|
|
||||||
private val playerListener = object : Player.Listener {
|
private val playerListener = object : Player.Listener {
|
||||||
override fun onIsPlayingChanged(isPlaying: Boolean) {
|
override fun onIsPlayingChanged(isPlaying: Boolean) {
|
||||||
if (PlayerHelper.pipEnabled) {
|
if (PlayerHelper.pipEnabled || PictureInPictureCompat.isInPictureInPictureMode(mainActivity)) {
|
||||||
PictureInPictureCompat.setPictureInPictureParams(requireActivity(), pipParams)
|
PictureInPictureCompat.setPictureInPictureParams(requireActivity(), pipParams)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user