mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
only do in PiP
This commit is contained in:
parent
b997d0c6d0
commit
93315aeb63
@ -1137,7 +1137,7 @@ class PlayerFragment : BaseFragment() {
|
||||
binding.playImageView.setImageResource(R.drawable.ic_play)
|
||||
}
|
||||
|
||||
if (SDK_INT >= Build.VERSION_CODES.O) {
|
||||
if (SDK_INT >= Build.VERSION_CODES.O && activity?.isInPictureInPictureMode!!) {
|
||||
// listen for the stop button in the notification
|
||||
if (playbackState == PlaybackState.STATE_STOPPED) {
|
||||
// finish PiP by finishing the activity
|
||||
|
Loading…
Reference in New Issue
Block a user