Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4696f2fb authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Code Review
Browse files

Merge "Start app with several activities with intent filter [Main, Launcher] was broken"

parents cb609625 df4cfa36
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1687,8 +1687,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;
        }