diff options
| author | 2022-08-01 20:26:11 +0000 | |
|---|---|---|
| committer | 2022-08-01 20:26:11 +0000 | |
| commit | 2d71a01c12a948478c61c1ef841bce4fcd5343d5 (patch) | |
| tree | c3713cd45f2b7d5fdec164ea15c4c370b3b5a60b | |
| parent | 7ec075c5a08f7cab6b41370ee5095673576bfc8a (diff) | |
| parent | 4b8cd1d4e8a3b67e656e23ca5318ea538ef04bf5 (diff) | |
Merge "Only set display ready when transfering displays" into tm-qpr-dev
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowContainer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/WindowContainer.java b/services/core/java/com/android/server/wm/WindowContainer.java index d9b25adb8c4c..2749b11ce6a1 100644 --- a/services/core/java/com/android/server/wm/WindowContainer.java +++ b/services/core/java/com/android/server/wm/WindowContainer.java @@ -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()); } |