Merge "Avoid collect window token which should be rotate independently" into tm-qpr-dev

This commit is contained in:
Wei Sheng Shih
2022-08-02 11:45:07 +00:00
committed by Android (Google) Code Review

View File

@@ -479,9 +479,10 @@ class TransitionController {
// Collect all visible non-app windows which need to be drawn before the animation starts.
final DisplayContent dc = wc.asDisplayContent();
if (dc != null) {
final boolean noAsyncRotation = dc.getAsyncRotationController() == null;
wc.forAllWindows(w -> {
if (w.mActivityRecord == null && w.isVisible() && !isCollecting(w.mToken)
&& dc.shouldSyncRotationChange(w)) {
&& (noAsyncRotation || !AsyncRotationController.canBeAsync(w.mToken))) {
transition.collect(w.mToken);
}
}, true /* traverseTopToBottom */);