merge from open-source master
Change-Id: I20cf00dba6908eeee12645e6878db7becdc2a5f9
This commit is contained in:
@@ -1704,8 +1704,9 @@ class ContextImpl extends Context {
|
||||
if (resolveInfo == null) {
|
||||
return null;
|
||||
}
|
||||
Intent intent = new Intent(Intent.ACTION_MAIN);
|
||||
intent.setClassName(packageName, resolveInfo.activityInfo.name);
|
||||
Intent intent = new Intent(intentToResolve);
|
||||
intent.setClassName(resolveInfo.activityInfo.applicationInfo.packageName,
|
||||
resolveInfo.activityInfo.name);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
return intent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user