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

Commit 1fea6b37 authored by Christopher Tate's avatar Christopher Tate
Browse files

The default home intent needs CATEGORY_DEFAULT

Because the resolve activity always assumes CATEGORY_DEFAULT, there are odd
cases where apps with malformed intent filters wind up interfering with
users' ability to specify a preferred launcher app.

Bug 8805220

Change-Id: I4c1295dc844e442eec6efd603ce11b673879dd5a
parent 996f6b04
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2298,6 +2298,7 @@ public final class ActivityManagerService extends ActivityManagerNative
        intent.setComponent(mTopComponent);
        if (mFactoryTest != SystemServer.FACTORY_TEST_LOW_LEVEL) {
            intent.addCategory(Intent.CATEGORY_HOME);
            intent.addCategory(Intent.CATEGORY_DEFAULT);
        }
        ActivityInfo aInfo =
            resolveActivityInfo(intent, STOCK_PM_FLAGS, userId);