Merge "Fix a bad merge" into sc-v2-dev am: 06ab38dd30
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15832864 Change-Id: I25873f45f0834bc78be614114ac0e6d6d609d390
This commit is contained in:
@@ -4945,10 +4945,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
||||
* this has become invisible.
|
||||
*/
|
||||
private void postApplyAnimation(boolean visible) {
|
||||
final boolean usingShellTransitions =
|
||||
mAtmService.getTransitionController().getTransitionPlayer() != null;
|
||||
final boolean delayed = isAnimating(PARENTS | CHILDREN,
|
||||
ANIMATION_TYPE_APP_TRANSITION | ANIMATION_TYPE_WINDOW_ANIMATION
|
||||
| ANIMATION_TYPE_RECENTS);
|
||||
if (!delayed) {
|
||||
if (!delayed && !usingShellTransitions) {
|
||||
// We aren't delayed anything, but exiting windows rely on the animation finished
|
||||
// callback being called in case the ActivityRecord was pretending to be delayed,
|
||||
// which we might have done because we were in closing/opening apps list.
|
||||
@@ -4967,8 +4969,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
||||
// updated.
|
||||
// If we're becoming invisible, update the client visibility if we are not running an
|
||||
// animation. Otherwise, we'll update client visibility in onAnimationFinished.
|
||||
if (visible || !isAnimating(PARENTS,
|
||||
ANIMATION_TYPE_APP_TRANSITION | ANIMATION_TYPE_RECENTS)) {
|
||||
if (visible || !isAnimating(PARENTS, ANIMATION_TYPE_APP_TRANSITION | ANIMATION_TYPE_RECENTS)
|
||||
|| usingShellTransitions) {
|
||||
setClientVisible(visible);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user