Merge "Only set display ready when transfering displays" into tm-qpr-dev
This commit is contained in:
@@ -3773,9 +3773,9 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
|
|||||||
// Check if this is changing displays. If so, mark the old display as "ready" for
|
// Check if this is changing displays. If so, mark the old display as "ready" for
|
||||||
// transitions. This is to work around the problem where setting readiness against this
|
// transitions. This is to work around the problem where setting readiness against this
|
||||||
// container will only set the new display as ready and leave the old display as unready.
|
// container will only set the new display as ready and leave the old display as unready.
|
||||||
if (mSyncState != SYNC_STATE_NONE && oldParent != null
|
if (mSyncState != SYNC_STATE_NONE && oldParent != null && newParent != null
|
||||||
&& oldParent.getDisplayContent() != null && (newParent == null
|
&& oldParent.getDisplayContent() != null && newParent.getDisplayContent() != null
|
||||||
|| oldParent.getDisplayContent() != newParent.getDisplayContent())) {
|
&& oldParent.getDisplayContent() != newParent.getDisplayContent()) {
|
||||||
mTransitionController.setReady(oldParent.getDisplayContent());
|
mTransitionController.setReady(oldParent.getDisplayContent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user