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

Commit 77309fa1 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Use accessor methods to get/set visibleBehindActivity"

parents 1ac1e310 1f544beb
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -813,10 +813,9 @@ final class ActivityStack {

        if (hasVisibleBehindActivity()) {
            // Stop visible behind activity before going to sleep.
            final ActivityRecord r = mActivityContainer.mActivityDisplay.mVisibleBehindActivity;
            final ActivityRecord r = getVisibleBehindActivity();
            mStackSupervisor.mStoppingActivities.add(r);
            if (DEBUG_STATES) Slog.v(TAG_STATES,
                    "Sleep still waiting to stop visible behind " + r);
            if (DEBUG_STATES) Slog.v(TAG_STATES, "Sleep still waiting to stop visible behind " + r);
            return true;
        }

@@ -1053,7 +1052,7 @@ final class ActivityStack {
            mHandler.removeMessages(STOP_TIMEOUT_MSG, r);
            r.stopped = true;
            r.state = ActivityState.STOPPED;
            if (mActivityContainer.mActivityDisplay.mVisibleBehindActivity == r) {
            if (getVisibleBehindActivity() == r) {
                mStackSupervisor.requestVisibleBehindLocked(r, false);
            }
            if (r.finishing) {
@@ -1214,9 +1213,9 @@ final class ActivityStack {

        next.returningOptions = null;

        if (mActivityContainer.mActivityDisplay.mVisibleBehindActivity == next) {
        if (getVisibleBehindActivity() == next) {
            // When resuming an activity, require it to call requestVisibleBehind() again.
            mActivityContainer.mActivityDisplay.setVisibleBehindActivity(null);
            setVisibleBehindActivity(null);
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -5171,7 +5171,7 @@ public final class ActivityStackSupervisor implements DisplayListener {

        /** All of the stacks on this display. Order matters, topmost stack is in front of all other
         * stacks, bottommost behind. Accessed directly by ActivityManager package classes */
        final ArrayList<ActivityStack> mStacks = new ArrayList<ActivityStack>();
        final ArrayList<ActivityStack> mStacks = new ArrayList<>();

        ActivityRecord mVisibleBehindActivity;