mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
fix: pip controls don't work if auto-PiP is disabled
This commit is contained in:
parent
97708e2069
commit
217d671a34
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user