Skip to content

Commit d4aa0f6

Browse files
author
Android Build Coastguard Worker
committed
Merge cherrypicks of ['googleplex-android-review.googlesource.com/22648062'] into tm-qpr3-release.
Change-Id: Ie8c919d47d54a0764b4222ec60e473474550b983
2 parents 877d6d0 + 272d3fb commit d4aa0f6

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

services/core/java/com/android/server/wm/WindowState.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,19 +2053,16 @@ boolean isInteresting() {
20532053

20542054
/**
20552055
* Like isOnScreen(), but we don't return true if the window is part
2056-
* of a transition but has not yet started animating.
2056+
* of a transition that has not yet been started.
20572057
*/
20582058
boolean isReadyForDisplay() {
2059-
if (!mHasSurface || mDestroying || !isVisibleByPolicy()) {
2060-
return false;
2061-
}
2062-
if (mToken.waitingToShow && getDisplayContent().mAppTransition.isTransitionSet()
2063-
&& !isAnimating(TRANSITION | PARENTS, ANIMATION_TYPE_APP_TRANSITION)) {
2059+
if (mToken.waitingToShow && getDisplayContent().mAppTransition.isTransitionSet()) {
20642060
return false;
20652061
}
20662062
final boolean parentAndClientVisible = !isParentWindowHidden()
20672063
&& mViewVisibility == View.VISIBLE && mToken.isVisible();
2068-
return parentAndClientVisible || isAnimating(TRANSITION | PARENTS, ANIMATION_TYPE_ALL);
2064+
return mHasSurface && isVisibleByPolicy() && !mDestroying
2065+
&& (parentAndClientVisible || isAnimating(TRANSITION | PARENTS));
20692066
}
20702067

20712068
boolean isFullyTransparent() {

0 commit comments

Comments
 (0)