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

Commit b31b3520 authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Automerger Merge Worker
Browse files

Merge "Wait enough time for WMS#waitForAnimationsToComplete" into sc-dev am: 127ea4fa

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

Change-Id: If0dfc0e50dca9178c118ca991da22c4525e5bd47
parents bb34e046 127ea4fa
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -8105,11 +8105,10 @@ public class WindowManagerService extends IWindowManager.Stub
            // This could prevent if there is no container animation, we still have to apply the
            // pending transaction and exit waiting.
            mAnimator.mNotifyWhenNoAnimation = true;
            WindowContainer animatingContainer = null;
            while (mAnimator.isAnimationScheduled() || timeoutRemaining > 0) {
                animatingContainer = mRoot.getAnimatingContainer(TRANSITION | CHILDREN,
                        ANIMATION_TYPE_ALL);
                if (animatingContainer == null) {
            while (timeoutRemaining > 0) {
                boolean isAnimating = mAnimator.isAnimationScheduled()
                        || mRoot.isAnimating(TRANSITION | CHILDREN, ANIMATION_TYPE_ALL);
                if (!isAnimating) {
                    break;
                }
                long startTime = System.currentTimeMillis();
@@ -8121,6 +8120,9 @@ public class WindowManagerService extends IWindowManager.Stub
            }
            mAnimator.mNotifyWhenNoAnimation = false;

            WindowContainer animatingContainer;
            animatingContainer = mRoot.getAnimatingContainer(TRANSITION | CHILDREN,
                    ANIMATION_TYPE_ALL);
            if (mAnimator.isAnimationScheduled() || animatingContainer != null) {
                Slog.w(TAG, "Timed out waiting for animations to complete,"
                        + " animatingContainer=" + animatingContainer