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

Commit d45b76c3 authored by Issei Suzuki's avatar Issei Suzuki Committed by Automerger Merge Worker
Browse files

Merge "Batch updating visibility in TaskDisplayArea" into rvc-dev am:...

Merge "Batch updating visibility in TaskDisplayArea" into rvc-dev am: ca6da34a am: 76c535aa am: 50d856f8 am: f49e553d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12025988

Change-Id: I63905c8baacfdf177e9e2b6f51809668f4494e57
parents e417cd98 f49e553d
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() {