Merge "show WSA when ready when using shell transitions" into tm-qpr-dev am: 2da86beb92
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18327072 Change-Id: I11a1780f30077da584cd578aefefde6e104e77f0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.
|
||||
*/
|
||||
boolean canShowWindows() {
|
||||
return allDrawn && !(isAnimating(PARENTS, ANIMATION_TYPE_APP_TRANSITION)
|
||||
&& hasNonDefaultColorWindow());
|
||||
final boolean drawn = mTransitionController.isShellTransitionsEnabled()
|
||||
? 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