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

Commit ca6da34a authored by Issei Suzuki's avatar Issei Suzuki Committed by Android (Google) Code Review
Browse files

Merge "Batch updating visibility in TaskDisplayArea" into rvc-dev

parents f615871c 7563f05e
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -1746,11 +1746,16 @@ final class TaskDisplayArea extends DisplayArea<ActivityStack> {

    void ensureActivitiesVisible(ActivityRecord starting, int configChanges,
            boolean preserveWindows, boolean notifyClients) {
        mAtmService.mStackSupervisor.beginActivityVisibilityUpdate();
        try {
            for (int stackNdx = getStackCount() - 1; stackNdx >= 0; --stackNdx) {
                final ActivityStack stack = getStackAt(stackNdx);
                stack.ensureActivitiesVisible(starting, configChanges, preserveWindows,
                        notifyClients);
            }
        } finally {
            mAtmService.mStackSupervisor.endActivityVisibilityUpdate();
        }
    }

    void prepareFreezingTaskBounds() {