Skip to content

Commit

Permalink
notification fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearfog committed Jul 30, 2024
1 parent 7a4a0a1 commit 2087c98
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ class NotificationHelper {
if (!legacyLayout) {
MediaStyle mediaStyle = new MediaStyle();
mediaStyle.setMediaSession(mSession.getSessionToken());
mediaStyle.setCancelButtonIntent(callbackStop);
mediaStyle.setShowCancelButton(true);
notificationBuilder.setStyle(mediaStyle);
}
// use custom notification layout for old Android version
Expand Down

0 comments on commit 2087c98

Please # to comment.