Skip to content

Commit

Permalink
Call cancelMediaNotification instead of manually cancelling
Browse files Browse the repository at this point in the history
(deduplication of code)
  • Loading branch information
MarmadileManteater committed Feb 4, 2024
1 parent 3669a05 commit 7773e1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class FreeTubeJavaScriptInterface {
private fun pushNotification(notification: Notification) {
val manager = NotificationManagerCompat.from(context)
// cancel any existing notifications
manager.cancel(NOTIFICATION_ID)
cancelMediaNotification()
manager.notify(NOTIFICATION_TAG, NOTIFICATION_ID, notification)
lastNotification = notification
}
Expand Down

0 comments on commit 7773e1d

Please sign in to comment.