Skip to content

Commit

Permalink
Pause playback when the media notification is dismissed
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Mar 1, 2024
1 parent d44fcd4 commit 46831d7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ class FreeTubeJavaScriptInterface {
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
)
.setDeleteIntent(
PendingIntent.getBroadcast(context, 1, Intent(context, MediaControlsReceiver::class.java).setAction("pause"), PendingIntent.FLAG_IMMUTABLE)
)
.setVisibility(Notification.VISIBILITY_PUBLIC)
.build()
} else {
Expand Down

0 comments on commit 46831d7

Please sign in to comment.