From cc8fd7f5de139162e0cf5213a5260bd5550218e3 Mon Sep 17 00:00:00 2001 From: f43nd1r Date: Sun, 6 Jun 2021 18:56:23 +0200 Subject: [PATCH] some more debug logs in NotificationBroadcastReceiver and isACRASenderServiceProcess as static for java access --- acra-core/src/main/java/org/acra/ACRA.kt | 1 + .../java/org/acra/receiver/NotificationBroadcastReceiver.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/acra-core/src/main/java/org/acra/ACRA.kt b/acra-core/src/main/java/org/acra/ACRA.kt index b73d295ade..a666e9ebaf 100644 --- a/acra-core/src/main/java/org/acra/ACRA.kt +++ b/acra-core/src/main/java/org/acra/ACRA.kt @@ -188,6 +188,7 @@ object ACRA { * @return true if the current process is the process running the SenderService. * NB this assumes that your SenderService is configured to used the default ':acra' process. */ + @JvmStatic fun isACRASenderServiceProcess(): Boolean { val processName = currentProcessName() debug { "ACRA processName='$processName'" } diff --git a/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt b/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt index c8dd4d10b4..452395d4cf 100644 --- a/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt +++ b/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt @@ -41,8 +41,10 @@ import java.io.IOException class NotificationBroadcastReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { try { + debug { "NotificationBroadcastReceiver called with $intent" } val notificationManager = getNotificationManager(context) notificationManager.cancel(NotificationInteraction.NOTIFICATION_ID) + debug { "notification intent action = ${intent.action}" } if (intent.action != null) { when (intent.action) { NotificationInteraction.INTENT_ACTION_SEND -> {