mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix pip when video ended
This commit is contained in:
parent
ffd7968686
commit
d837dedb12
@ -503,6 +503,13 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
try {
|
||||
// disable the auto PiP mode for SDK >= 32
|
||||
if (SDK_INT >= Build.VERSION_CODES.S) {
|
||||
activity?.setPictureInPictureParams(
|
||||
PictureInPictureParams.Builder().setAutoEnterEnabled(false).build()
|
||||
)
|
||||
}
|
||||
|
||||
saveWatchPosition()
|
||||
|
||||
// clear the playing queue and release the player
|
||||
|
Loading…
x
Reference in New Issue
Block a user