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

Commit 974eb3dd authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Run AppWindowAnimator.showAllWindowsLocked in a transaction.

Change-Id: I39dcecc79b272672ae5287e3c3c408fdfed6f616
parent ae64417b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -367,6 +367,7 @@ public class AppWindowAnimator {
        return false;
    }

    // This must be called while inside a transaction.
    boolean showAllWindowsLocked() {
        boolean isAnimating = false;
        final int NW = mAllAppWinAnimators.size();
+10 −1
Original line number Diff line number Diff line
@@ -1147,7 +1147,16 @@ class WindowSurfacePlacer {
            for (int j = 0; j < windowsCount; j++) {
                appAnimator.mAllAppWinAnimators.add(wtoken.allAppWindows.get(j).mWinAnimator);
            }
            if (SHOW_LIGHT_TRANSACTIONS) Slog.i(TAG,
                    ">>> OPEN TRANSACTION handleAppTransitionReadyLocked()");
            SurfaceControl.openTransaction();
            try {
                mService.mAnimator.mAnimating |= appAnimator.showAllWindowsLocked();
            } finally {
                SurfaceControl.closeTransaction();
                if (SHOW_LIGHT_TRANSACTIONS) Slog.i(TAG,
                        "<<< CLOSE TRANSACTION handleAppTransitionReadyLocked()");
            }
            mService.mAnimator.mAppWindowAnimating |= appAnimator.isAnimating();

            int topOpeningLayer = 0;