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

Commit 61468e66 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "[PB] Ensure BAC receive animation leashes before transition." into main

parents 7bca980e cdefbdc4
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -574,12 +574,17 @@ class BackNavigationController {

    private void scheduleAnimation(@NonNull AnimationHandler.ScheduleAnimationBuilder builder) {
        mPendingAnimation = builder.build();
        if (mAnimationHandler.mOpenAnimAdaptor != null
                && mAnimationHandler.mOpenAnimAdaptor.mPreparedOpenTransition != null) {
            startAnimation();
        } else {
            mWindowManagerService.mWindowPlacerLocked.requestTraversal();
            if (mShowWallpaper) {
                mWindowManagerService.getDefaultDisplayContentLocked().mWallpaperController
                        .adjustWallpaperWindows();
            }
        }
    }

    private boolean isWaitBackTransition() {
        // Ignore mWaitTransition while flag is enabled.