Merge "show WSA when ready when using shell transitions" into tm-qpr-dev
This commit is contained in:
@@ -4454,8 +4454,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
* color mode set to avoid jank in the middle of the transition.
|
* color mode set to avoid jank in the middle of the transition.
|
||||||
*/
|
*/
|
||||||
boolean canShowWindows() {
|
boolean canShowWindows() {
|
||||||
return allDrawn && !(isAnimating(PARENTS, ANIMATION_TYPE_APP_TRANSITION)
|
final boolean drawn = mTransitionController.isShellTransitionsEnabled()
|
||||||
&& hasNonDefaultColorWindow());
|
? mSyncState != SYNC_STATE_WAITING_FOR_DRAW : allDrawn;
|
||||||
|
final boolean animating = mTransitionController.isShellTransitionsEnabled()
|
||||||
|
? mTransitionController.inTransition(this)
|
||||||
|
: isAnimating(PARENTS, ANIMATION_TYPE_APP_TRANSITION);
|
||||||
|
return drawn && !(animating && hasNonDefaultColorWindow());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user