Loading services/core/java/com/android/server/wm/ActivityRecord.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -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()); } } /** /** Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -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()); } } /** /** Loading