Merge "Avoid collect window token which should be rotate independently" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
24737bd8d1
@@ -479,9 +479,10 @@ class TransitionController {
|
|||||||
// Collect all visible non-app windows which need to be drawn before the animation starts.
|
// Collect all visible non-app windows which need to be drawn before the animation starts.
|
||||||
final DisplayContent dc = wc.asDisplayContent();
|
final DisplayContent dc = wc.asDisplayContent();
|
||||||
if (dc != null) {
|
if (dc != null) {
|
||||||
|
final boolean noAsyncRotation = dc.getAsyncRotationController() == null;
|
||||||
wc.forAllWindows(w -> {
|
wc.forAllWindows(w -> {
|
||||||
if (w.mActivityRecord == null && w.isVisible() && !isCollecting(w.mToken)
|
if (w.mActivityRecord == null && w.isVisible() && !isCollecting(w.mToken)
|
||||||
&& dc.shouldSyncRotationChange(w)) {
|
&& (noAsyncRotation || !AsyncRotationController.canBeAsync(w.mToken))) {
|
||||||
transition.collect(w.mToken);
|
transition.collect(w.mToken);
|
||||||
}
|
}
|
||||||
}, true /* traverseTopToBottom */);
|
}, true /* traverseTopToBottom */);
|
||||||
|
|||||||
Reference in New Issue
Block a user