diff --git a/app/src/main/java/org/nuclearfog/apollo/service/NotificationHelper.java b/app/src/main/java/org/nuclearfog/apollo/service/NotificationHelper.java index b2024a1..b63a966 100644 --- a/app/src/main/java/org/nuclearfog/apollo/service/NotificationHelper.java +++ b/app/src/main/java/org/nuclearfog/apollo/service/NotificationHelper.java @@ -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