Skip to content

Commit

Permalink
Set package name for activity intent
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Feb 8, 2023
1 parent c88f25d commit 72beedc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public class DynamicIntentUtils {
Intent intent;
if (context != null && clazz != null) {
intent = new Intent(context, clazz);
intent.setPackage(context.getPackageName());
intent.setComponent(new ComponentName(context, clazz));
} else {
intent = new Intent();
Expand Down

0 comments on commit 72beedc

Please sign in to comment.