Skip to content

Commit

Permalink
fall back to resolving by class name if resolving by package name fai…
Browse files Browse the repository at this point in the history
…ls. Fixes #1179 (comment)
  • Loading branch information
F43nd1r committed Jun 19, 2023
1 parent 2c27c84 commit 1489cd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions acra-mail/src/main/java/org/acra/sender/EmailIntentSender.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1489cd6

Please sign in to comment.