mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20: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() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
try {
|
try {
|
||||||
|
// disable the auto PiP mode for SDK >= 32
|
||||||
|
if (SDK_INT >= Build.VERSION_CODES.S) {
|
||||||
|
activity?.setPictureInPictureParams(
|
||||||
|
PictureInPictureParams.Builder().setAutoEnterEnabled(false).build()
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
saveWatchPosition()
|
saveWatchPosition()
|
||||||
|
|
||||||
// clear the playing queue and release the player
|
// clear the playing queue and release the player
|
||||||
|
Loading…
x
Reference in New Issue
Block a user