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

Commit 9e5c7126 authored by Wei Wang's avatar Wei Wang
Browse files

remove Intent.FLAG_ACTIVITY_NEW_TASK flag check

Bug: 29071719
Change-Id: Ib3eb0198454e3ed84c0f98dce82e7981aa57fc4f
parent e8ae33f6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -9135,9 +9135,6 @@ public final class ActivityManagerService extends ActivityManagerNative
                        // sense, so turn off auto-remove.
                        intent.addFlags(Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS);
                    }
                } else if ((intent.getFlags()&Intent.FLAG_ACTIVITY_NEW_TASK) != 0) {
                    // Must be a new task.
                    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                }
                if (!comp.equals(mLastAddedTaskComponent) || callingUid != mLastAddedTaskUid) {
                    mLastAddedTaskActivity = null;