Skip to content

Commit

Permalink
some more debug logs in NotificationBroadcastReceiver and isACRASende…
Browse files Browse the repository at this point in the history
…rServiceProcess as static for java access
  • Loading branch information
F43nd1r committed Jun 6, 2021
1 parent 001384e commit cc8fd7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions acra-core/src/main/java/org/acra/ACRA.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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'" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit cc8fd7f

Please sign in to comment.