Merge "Revert "Fix a bad merge"" into sc-v2-dev
This commit is contained in:
@@ -4945,12 +4945,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
* this has become invisible.
|
* this has become invisible.
|
||||||
*/
|
*/
|
||||||
private void postApplyAnimation(boolean visible) {
|
private void postApplyAnimation(boolean visible) {
|
||||||
final boolean usingShellTransitions =
|
|
||||||
mAtmService.getTransitionController().getTransitionPlayer() != null;
|
|
||||||
final boolean delayed = isAnimating(PARENTS | CHILDREN,
|
final boolean delayed = isAnimating(PARENTS | CHILDREN,
|
||||||
ANIMATION_TYPE_APP_TRANSITION | ANIMATION_TYPE_WINDOW_ANIMATION
|
ANIMATION_TYPE_APP_TRANSITION | ANIMATION_TYPE_WINDOW_ANIMATION
|
||||||
| ANIMATION_TYPE_RECENTS);
|
| ANIMATION_TYPE_RECENTS);
|
||||||
if (!delayed && !usingShellTransitions) {
|
if (!delayed) {
|
||||||
// We aren't delayed anything, but exiting windows rely on the animation finished
|
// 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,
|
// 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.
|
// which we might have done because we were in closing/opening apps list.
|
||||||
@@ -4969,8 +4967,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
// updated.
|
// updated.
|
||||||
// If we're becoming invisible, update the client visibility if we are not running an
|
// If we're becoming invisible, update the client visibility if we are not running an
|
||||||
// animation. Otherwise, we'll update client visibility in onAnimationFinished.
|
// animation. Otherwise, we'll update client visibility in onAnimationFinished.
|
||||||
if (visible || !isAnimating(PARENTS, ANIMATION_TYPE_APP_TRANSITION | ANIMATION_TYPE_RECENTS)
|
if (visible || !isAnimating(PARENTS,
|
||||||
|| usingShellTransitions) {
|
ANIMATION_TYPE_APP_TRANSITION | ANIMATION_TYPE_RECENTS)) {
|
||||||
setClientVisible(visible);
|
setClientVisible(visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user