Merge "Only set display ready when transfering displays" into tm-qpr-dev am: 2d71a01c12

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

Change-Id: Ic19cb05e1947bbaf961e6c1b5a97294daf0db536
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Rosky
2022-08-01 20:50:31 +00:00
committed by Automerger Merge Worker

View File

@@ -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
// 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.
if (mSyncState != SYNC_STATE_NONE && oldParent != null
&& oldParent.getDisplayContent() != null && (newParent == null
|| oldParent.getDisplayContent() != newParent.getDisplayContent())) {
if (mSyncState != SYNC_STATE_NONE && oldParent != null && newParent != null
&& oldParent.getDisplayContent() != null && newParent.getDisplayContent() != null
&& oldParent.getDisplayContent() != newParent.getDisplayContent()) {
mTransitionController.setReady(oldParent.getDisplayContent());
}