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

Commit df4cfa36 authored by Johan Erlandsson's avatar Johan Erlandsson Committed by Jean-Baptiste Queru
Browse files

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

When an application have more than one activities with intent filter
[Main, Launcher], then the intent with ResolverActivity wasn't created correct.

Change-Id: I2617122e07c35284862d2e0643888966ec0f7221
parent e74e7e2a
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;
        }