Skip to content

Commit 1489cd6

Browse files
committed
fall back to resolving by class name if resolving by package name fails. Fixes #1179 (comment)
1 parent 2c27c84 commit 1489cd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

acra-mail/src/main/java/org/acra/sender/EmailIntentSender.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ class EmailIntentSender(private val config: CoreConfiguration) : ReportSender {
226226
packageSpecificIntent.setPackage(info.activityInfo.packageName)
227227
if (packageSpecificIntent.resolveActivity(pm) != null) {
228228
initialIntents.add(packageSpecificIntent)
229+
continue
230+
}
231+
packageSpecificIntent.setClassName(info.activityInfo.packageName, info.activityInfo.name)
232+
if(packageSpecificIntent.resolveActivity(pm) != null) {
233+
initialIntents.add(packageSpecificIntent)
229234
}
230235
}
231236
return initialIntents

0 commit comments

Comments
 (0)