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

Commit 1b3ab601 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Automerger Merge Worker
Browse files

Merge "Defer remove splash screen window if it is inTransition." into udc-dev...

Merge "Defer remove splash screen window if it is inTransition." into udc-dev am: 778e47bb am: 2339d084

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22494388



Change-Id: I0a6f2594a5f1b9493670449583ed6233496eea7b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9e7fbfa2 2339d084
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2865,11 +2865,9 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
            return;
        }

        if (animate && mTransitionController.inCollectingTransition(startingWindow)
                && startingWindow.cancelAndRedraw()) {
        if (animate && mTransitionController.inCollectingTransition(startingWindow)) {
            // Defer remove starting window after transition start.
            // If splash screen window was in collecting, the client side is unable to draw because
            // of Session#cancelDraw, which will blocking the remove animation.
            // The surface of app window could really show after the transition finish.
            startingWindow.mSyncTransaction.addTransactionCommittedListener(Runnable::run, () -> {
                synchronized (mAtmService.mGlobalLock) {
                    surface.remove(true);