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

Commit 41fab305 authored by Arthur (Min-Hsin) Lee's avatar Arthur (Min-Hsin) Lee Committed by Automerger Merge Worker
Browse files

Merge "Skip sync invisible & lifecycle-unlreated window for an Activity." into...

Merge "Skip sync invisible & lifecycle-unlreated window for an Activity." into udc-dev am: 051bf934 am: 700154e9

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



Change-Id: I66c3017ab9ddee1d501774875c449d80a54af660
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 26564106 700154e9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -5686,6 +5686,12 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
            // Skip sync for invisible app windows which are not managed by activity lifecycle.
            return false;
        }
        if (mActivityRecord != null && mViewVisibility != View.VISIBLE
                && mWinAnimator.mAttrType != TYPE_BASE_APPLICATION
                && mWinAnimator.mAttrType != TYPE_APPLICATION_STARTING) {
            // Skip sync for invisible app windows which are not managed by activity lifecycle.
            return false;
        }
        // In the WindowContainer implementation we immediately mark ready
        // since a generic WindowContainer only needs to wait for its
        // children to finish and is immediately ready from its own