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

Commit f6d2c1d7 authored by Wei Sheng Shih's avatar Wei Sheng Shih 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-qpr-dev am: 7786667a

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



Change-Id: Ide6415feef3e9ab1e017f5f994cecd83f9f5159e
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents bf72db3f 7786667a
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -5677,6 +5677,12 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
            // TODO(b/233286785): Add sync support to wallpaper.
            // TODO(b/233286785): Add sync support to wallpaper.
            return true;
            return true;
        }
        }
        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
        // In the WindowContainer implementation we immediately mark ready
        // since a generic WindowContainer only needs to wait for its
        // since a generic WindowContainer only needs to wait for its
        // children to finish and is immediately ready from its own
        // children to finish and is immediately ready from its own