From 1489cd689b1a28eb11d3d27e2445b262a7819b86 Mon Sep 17 00:00:00 2001 From: f43nd1r Date: Mon, 19 Jun 2023 12:41:19 +0200 Subject: [PATCH] fall back to resolving by class name if resolving by package name fails. Fixes https://github.com/ACRA/acra/issues/1179#issuecomment-1504688618 --- acra-mail/src/main/java/org/acra/sender/EmailIntentSender.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acra-mail/src/main/java/org/acra/sender/EmailIntentSender.kt b/acra-mail/src/main/java/org/acra/sender/EmailIntentSender.kt index 223dbdabeb..5dcd1aa63f 100644 --- a/acra-mail/src/main/java/org/acra/sender/EmailIntentSender.kt +++ b/acra-mail/src/main/java/org/acra/sender/EmailIntentSender.kt @@ -226,6 +226,11 @@ class EmailIntentSender(private val config: CoreConfiguration) : ReportSender { packageSpecificIntent.setPackage(info.activityInfo.packageName) if (packageSpecificIntent.resolveActivity(pm) != null) { initialIntents.add(packageSpecificIntent) + continue + } + packageSpecificIntent.setClassName(info.activityInfo.packageName, info.activityInfo.name) + if(packageSpecificIntent.resolveActivity(pm) != null) { + initialIntents.add(packageSpecificIntent) } } return initialIntents