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

Commit e0dacc11 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Allow activities without FLAG_ACTIVITY_NEW_TASK set to be home activities

Some callers can launch the home activity without setting
FLAG_ACTIVITY_NEW_TASK on the intent. When this occurred we were
putting a copy of the home activity in the application stack
which causes a few issues like the home activity showing up in
the recents list.
We now don't check the FLAG_ACTIVITY_NEW_TASK flag when determining
if the activity is a home activity is it meets all the other
requirements.

Bug: 26797267
Change-Id: I8176c6d9c27d26e9db6fa9f0f1a48e2e1388fb46
parent 33f26620
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -654,7 +654,6 @@ final class ActivityRecord {
                    _intent.getCategories().size() == 1 &&
                    _intent.getData() == null &&
                    _intent.getType() == null &&
                    (intent.getFlags()&Intent.FLAG_ACTIVITY_NEW_TASK) != 0 &&
                    !isResolverActivity()) {
                // This sure looks like a home activity!
                mActivityType = HOME_ACTIVITY_TYPE;