We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb60962 + df4cfa3 commit 4696f2fCopy full SHA for 4696f2f
core/java/android/app/ContextImpl.java
@@ -1687,8 +1687,9 @@ public Intent getLaunchIntentForPackage(String packageName) {
1687
if (resolveInfo == null) {
1688
return null;
1689
}
1690
- Intent intent = new Intent(Intent.ACTION_MAIN);
1691
- intent.setClassName(packageName, resolveInfo.activityInfo.name);
+ Intent intent = new Intent(intentToResolve);
+ intent.setClassName(resolveInfo.activityInfo.applicationInfo.packageName,
1692
+ resolveInfo.activityInfo.name);
1693
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
1694
return intent;
1695
0 commit comments