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

Commit 165640bb authored by Craig Mautner's avatar Craig Mautner
Browse files

Use correct stacks for testing changes.

Fixes bug 8656057.

Change-Id: I88e48d28d240fced866a82bd3d49f8807300c0ad
parent 7d9eaa43
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2412,7 +2412,7 @@ final class ActivityStack {
            if (r.finishing) {
                finishCurrentActivityLocked(r, FINISH_IMMEDIATELY, false);
            } else {
                stopActivityLocked(r);
                r.task.stack.stopActivityLocked(r);
            }
        }

@@ -2420,7 +2420,7 @@ final class ActivityStack {
        // waiting for the next one to start.
        for (int i = 0; i < NF; i++) {
            r = finishes.get(i);
            activityRemoved |= destroyActivityLocked(r, true, false, "finish-idle");
            activityRemoved |= r.task.stack.destroyActivityLocked(r, true, false, "finish-idle");
        }

        if (booting) {
+3 −2
Original line number Diff line number Diff line
@@ -1212,8 +1212,9 @@ public class ActivityStackSupervisor {
                    // to have the same behavior as if a new instance was
                    // being started, which means not bringing it to the front
                    // if the caller is not itself in the front.
                    ActivityRecord curTop =
                            targetStack.topRunningNonDelayedActivityLocked(notTop);
                    final ActivityStack lastStack = getLastStack();
                    ActivityRecord curTop = lastStack == null?
                            null : lastStack.topRunningNonDelayedActivityLocked(notTop);
                    if (curTop != null && curTop.task != intentActivity.task) {
                        r.intent.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
                        if (sourceRecord == null || sourceStack.topActivity() == sourceRecord) {