From e11ee4f4324cb1f67db093d2c7a815ea23bc48bb Mon Sep 17 00:00:00 2001 From: Nathan Kerr Date: Thu, 25 Aug 2022 14:22:50 -0700 Subject: [PATCH] Apparently I don't know how to combine flags correctly Closes #47 --- src/android/ForegroundService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/ForegroundService.java b/src/android/ForegroundService.java index b38cf92..d3f2c73 100644 --- a/src/android/ForegroundService.java +++ b/src/android/ForegroundService.java @@ -240,7 +240,7 @@ public class ForegroundService extends Service { intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); PendingIntent contentIntent = PendingIntent.getActivity( context, NOTIFICATION_ID, intent, - PendingIntent.FLAG_UPDATE_CURRENT & PendingIntent.FLAG_IMMUTABLE); + PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE); notification.setContentIntent(contentIntent);