mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
commit
7c8b1bb826
@ -7,7 +7,6 @@ import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.util.Log
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import android.view.View
|
||||
|
@ -1026,9 +1026,9 @@ class PlayerFragment : BaseFragment() {
|
||||
}
|
||||
|
||||
// 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
|
||||
activity?.finish()
|
||||
if (activity?.isInPictureInPictureMode!!) activity?.finish()
|
||||
}
|
||||
super.onPlaybackStateChanged(playbackState)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user