From 2087c98db5e6f57340725bb52a00475c956cf331 Mon Sep 17 00:00:00 2001 From: nuclearfog <32868976+nuclearfog@users.noreply.github.com> Date: Tue, 30 Jul 2024 20:31:37 +0200 Subject: [PATCH] notification fix --- .../java/org/nuclearfog/apollo/service/NotificationHelper.java | 2 ++ 1 file changed, 2 insertions(+) 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