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

Commit e114b8f4 authored by Jorge Gil's avatar Jorge Gil Committed by Android (Google) Code Review
Browse files

Merge "Reland: Dispatch TaskOrg events before finishing surface placement" into sc-dev

parents 588fb1c7 4b500791
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -847,7 +847,6 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
        mWmService.openSurfaceTransaction();
        try {
            applySurfaceChangesTransaction();
            mWmService.mSyncEngine.onSurfacePlacement();
        } catch (RuntimeException e) {
            Slog.wtf(TAG, "Unhandled exception in Window Manager", e);
        } finally {
@@ -861,6 +860,7 @@ class RootWindowContainer extends WindowContainer<DisplayContent>

        // Send any pending task-info changes that were queued-up during a layout deferment
        mWmService.mAtmService.mTaskOrganizerController.dispatchPendingEvents();
        mWmService.mSyncEngine.onSurfacePlacement();
        mWmService.mAnimator.executeAfterPrepareSurfacesRunnables();

        checkAppTransitionReady(surfacePlacer);