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

Commit c3835802 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge changes I08fcd278,I1f496bb7

* changes:
  Detect animation completions like we used to. Previous approximations weren't indicating completion and windows weren't being layered correctly as a result.
  debug
parents 9f779324 343511c9
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -7685,8 +7685,6 @@ public class WindowManagerService extends IWindowManager.Stub
                    }
                }

                final boolean wasAnimating = w.mWasAnimating;

                // If the window has moved due to its containing
                // content frame changing, then we'd like to animate
                // it.  The checks here are ordered by what is least
@@ -7705,8 +7703,13 @@ public class WindowManagerService extends IWindowManager.Stub
                    w.mAnimDh = innerDh;
                }

                // Execute animation.
                final boolean nowAnimating = w.isAnimating();
                final boolean wasAnimating = w.mWasAnimating;
                final boolean nowAnimating = w.mLocalAnimating;

                if (DEBUG_WALLPAPER) {
                    Slog.v(TAG, w + ": wasAnimating=" + wasAnimating +
                            ", nowAnimating=" + nowAnimating);
                }

                // If this window is animating, make a note that we have
                // an animating window and take care of a request to run
+1 −1
Original line number Diff line number Diff line
@@ -982,7 +982,7 @@ final class WindowState implements WindowManagerPolicy.WindowState {
    boolean stepAnimationLocked(long currentTime) {
        // Save the animation state as it was before this step so WindowManagerService can tell if
        // we just started or just stopped animating by comparing mWasAnimating with isAnimating().
        mWasAnimating = isAnimating();
        mWasAnimating = mAnimating;
        if (!mService.mDisplayFrozen && mService.mPolicy.isScreenOnFully()) {
            // We will run animations as long as the display isn't frozen.