Merge "Move handleCompleteDeferredRemoval to animator thread" into rvc-qpr-dev am: 7585f8c448 am: 3c34bff2d9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13087901

Change-Id: Ie52c63d4ba4b5e546b6af73fab18f01877e5413e
This commit is contained in:
Riddle Hsu
2020-11-19 16:20:45 +00:00
committed by Automerger Merge Worker
3 changed files with 4 additions and 4 deletions

View File

@@ -998,9 +998,6 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
}
}
// Remove all deferred displays stacks, tasks, and activities.
handleCompleteDeferredRemoval();
forAllDisplays(dc -> {
dc.getInputMonitor().updateInputWindowsLw(true /*force*/);
dc.updateSystemGestureExclusion();

View File

@@ -145,6 +145,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();

View File

@@ -1112,7 +1112,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;
}
}