Merge "Move handleCompleteDeferredRemoval to animator thread" into rvc-qpr-dev am: 7585f8c448
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13087901 Change-Id: I4b54e67ae49639888b571450e282b3bd25be7068
This commit is contained in:
@@ -994,9 +994,6 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
|
||||
}
|
||||
}
|
||||
|
||||
// Remove all deferred displays stacks, tasks, and activities.
|
||||
handleCompleteDeferredRemoval();
|
||||
|
||||
forAllDisplays(dc -> {
|
||||
dc.getInputMonitor().updateInputWindowsLw(true /*force*/);
|
||||
dc.updateSystemGestureExclusion();
|
||||
|
||||
@@ -143,6 +143,9 @@ public class WindowAnimator {
|
||||
ProtoLog.i(WM_SHOW_TRANSACTIONS, ">>> OPEN TRANSACTION animate");
|
||||
mService.openSurfaceTransaction();
|
||||
try {
|
||||
// Remove all deferred displays, tasks, and activities.
|
||||
mService.mRoot.handleCompleteDeferredRemoval();
|
||||
|
||||
final AccessibilityController accessibilityController =
|
||||
mService.mAccessibilityController;
|
||||
final int numDisplays = mDisplayContentsAnimators.size();
|
||||
|
||||
@@ -1060,7 +1060,7 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
|
||||
// descendant. E.g. if a display is pending to be removed because it contains an
|
||||
// activity with {@link ActivityRecord#mIsExiting} is true, the display may be
|
||||
// removed when completing the removal of the last activity from
|
||||
// {@link ActivityRecord#checkCompleteDeferredRemoval}.
|
||||
// {@link ActivityRecord#handleCompleteDeferredRemoval}.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user