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

Commit 0fa45d93 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Remove PendingActivityLaunches based on stack." into klp-modular-dev

parents 77d6f36b 7f13ed37
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2688,7 +2688,6 @@ final class ActivityStack {
        // down to the max limit while they are still waiting to finish.
        mStackSupervisor.mFinishingActivities.remove(r);
        mStackSupervisor.mWaitingVisibleActivities.remove(r);
        mStackSupervisor.removePendingActivityLaunchesLocked(r);

        // Remove any pending results.
        if (r.finishing && r.pendingResults != null) {
+3 −2
Original line number Diff line number Diff line
@@ -1859,10 +1859,10 @@ public final class ActivityStackSupervisor implements DisplayListener {
        }
    }

    void removePendingActivityLaunchesLocked(ActivityRecord r) {
    void removePendingActivityLaunchesLocked(ActivityStack stack) {
        for (int palNdx = mPendingActivityLaunches.size() - 1; palNdx >= 0; --palNdx) {
            PendingActivityLaunch pal = mPendingActivityLaunches.get(palNdx);
            if (pal.r == r) {
            if (pal.stack == stack) {
                mPendingActivityLaunches.remove(palNdx);
            }
        }
@@ -3097,6 +3097,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
                long origId = Binder.clearCallingIdentity();
                try {
                    mStack.finishAllActivitiesLocked(false);
                    removePendingActivityLaunchesLocked(mStack);
                } finally {
                    Binder.restoreCallingIdentity(origId);
                }