diff --git a/app/src/main/java/com/chiller3/bcr/NotificationActionService.kt b/app/src/main/java/com/chiller3/bcr/NotificationActionService.kt index 3a2530731..aa818c1a8 100644 --- a/app/src/main/java/com/chiller3/bcr/NotificationActionService.kt +++ b/app/src/main/java/com/chiller3/bcr/NotificationActionService.kt @@ -27,7 +27,8 @@ class NotificationActionService : Service() { ) = Intent(context, NotificationActionService::class.java).apply { action = ACTION_DELETE_URI // Unused, but guarantees filterEquals() uniqueness for use with PendingIntents - data = Uri.fromParts("notification", notificationId.toString(), null) + val uniqueSsp = files.asSequence().map { it.uri.toString() }.joinToString("\u0000") + data = Uri.fromParts("unused", uniqueSsp, null) putExtra(EXTRA_FILES, ArrayList(files)) putExtra(EXTRA_NOTIFICATION_ID, notificationId) } @@ -76,6 +77,7 @@ class NotificationActionService : Service() { } handler.post { + Log.i(TAG, "Cancelling notification $notificationId") notificationManager.cancel(notificationId) stopSelf(startId) }