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

Commit 31e8f733 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Notify onEnterAnimationComplete even if no transition

This restores partial logic as legacy transition to notify the
callback if there is no animation. Because the apps may always
expect the callback to be called.

Fix: 402623073
Flag: EXEMPT bugfix
Test: CtsWindowManagerDeviceAnimations
Change-Id: I41f601e06e9f898dfebf29da525b63959350381d
parent fe243d08
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5583,6 +5583,13 @@ final class ActivityRecord extends WindowToken {
        // called for updating snapshot states.
        if (!fromTransition) {
            mWmService.mSnapshotController.notifyAppVisibilityChanged(this, visible);
            if (visible) {
                // In case the activity becomes visible without transition, the client still expects
                // to receive Activity#onEnterAnimationComplete.
                mEnteringAnimation = true;
                mWmService.mActivityManagerAppTransitionNotifier.onAppTransitionFinishedLocked(
                        token);
            }
        }
    }