mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
dont close app accidentially
This commit is contained in:
parent
c4fde665d0
commit
e888b8a061
@ -1026,9 +1026,9 @@ class PlayerFragment : BaseFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// listen for the stop button in the notification
|
// listen for the stop button in the notification
|
||||||
if (playbackState == PlaybackState.STATE_STOPPED) {
|
if (playbackState == PlaybackState.STATE_STOPPED && SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
// finish PiP by finishing the activity
|
// finish PiP by finishing the activity
|
||||||
activity?.finish()
|
if (activity?.isInPictureInPictureMode!!) activity?.finish()
|
||||||
}
|
}
|
||||||
super.onPlaybackStateChanged(playbackState)
|
super.onPlaybackStateChanged(playbackState)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user