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

Commit 31b7df24 authored by Johan Erlandsson's avatar Johan Erlandsson Committed by Steve Kondik
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 1e04acc9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1707,8 +1707,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;
        }