Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89db4366 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Deliver onEnterAnimationComplete when there is no transition animation."

parents 0ff759cc 3b81c90e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4065,6 +4065,7 @@ public class WindowManagerService extends IWindowManager.Stub
        // * or the token was marked as hidden and is exiting before we had a chance to play the
        // transition animation
        // * or this is an opening app and windows are being replaced.
        boolean visibilityChanged = false;
        if (wtoken.hidden == visible || (wtoken.hidden && wtoken.mIsExiting) ||
                (visible && wtoken.waitingForReplacement())) {
            boolean changed = false;
@@ -4131,6 +4132,7 @@ public class WindowManagerService extends IWindowManager.Stub
            }

            wtoken.hidden = wtoken.hiddenRequested = !visible;
            visibilityChanged = true;
            if (!visible) {
                unsetAppFreezingScreenLocked(wtoken, true, true);
            } else {
@@ -4168,6 +4170,13 @@ public class WindowManagerService extends IWindowManager.Stub
            }
        }

        if (visibilityChanged && visible && !delayed) {
            // The token was made immediately visible, there will be no entrance animation. We need
            // to inform the client the enter animation was finished.
            wtoken.mEnteringAnimation = true;
            mActivityManagerAppTransitionNotifier.onAppTransitionFinishedLocked(wtoken.token);
        }

        return delayed;
    }