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

Commit b3272fb2 authored by Robin Lee's avatar Robin Lee Committed by Presubmit Automerger Backend
Browse files

[automerge] DO NOT MERGE Revert "Accept a Window as shown if it's in any transition" 2p: dd2ba83f

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

Change-Id: Id78824c46966c8bc22849ba89f0978f4d993fe66
parents f2356520 dd2ba83f
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -2053,19 +2053,16 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP

    /**
     * Like isOnScreen(), but we don't return true if the window is part
     * of a transition but has not yet started animating.
     * of a transition that has not yet been started.
     */
    boolean isReadyForDisplay() {
        if (!mHasSurface || mDestroying || !isVisibleByPolicy()) {
            return false;
        }
        if (mToken.waitingToShow && getDisplayContent().mAppTransition.isTransitionSet()
                && !isAnimating(TRANSITION | PARENTS, ANIMATION_TYPE_APP_TRANSITION)) {
        if (mToken.waitingToShow && getDisplayContent().mAppTransition.isTransitionSet()) {
            return false;
        }
        final boolean parentAndClientVisible = !isParentWindowHidden()
                && mViewVisibility == View.VISIBLE && mToken.isVisible();
        return parentAndClientVisible || isAnimating(TRANSITION | PARENTS, ANIMATION_TYPE_ALL);
        return mHasSurface && isVisibleByPolicy() && !mDestroying
                && (parentAndClientVisible || isAnimating(TRANSITION | PARENTS));
    }

    boolean isFullyTransparent() {