Revert "Reland: Dispatch TaskOrg events before finishing surface placement"

This reverts commit e35d411c50.

Reason for revert: b/179846685 

Change-Id: I901b2b9d143c2f8cf9127fa9dc0ccc8198c45dc4
This commit is contained in:
Zhuoyao Zhang
2021-02-11 19:43:44 +00:00
parent e35d411c50
commit ad6e2c2ba0

View File

@@ -851,8 +851,6 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
mWmService.openSurfaceTransaction();
try {
applySurfaceChangesTransaction();
// Send any pending task-info changes that were queued-up during a layout deferment
mWmService.mAtmService.mTaskOrganizerController.dispatchPendingEvents();
mWmService.mSyncEngine.onSurfacePlacement();
} catch (RuntimeException e) {
Slog.wtf(TAG, "Unhandled exception in Window Manager", e);
@@ -865,6 +863,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
}
}
// Send any pending task-info changes that were queued-up during a layout deferment
mWmService.mAtmService.mTaskOrganizerController.dispatchPendingEvents();
mWmService.mAnimator.executeAfterPrepareSurfacesRunnables();
checkAppTransitionReady(surfacePlacer);