summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-07-26 10:21:32 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-07-26 10:21:32 +0000
commit93b8756b96f00078c058757b6ffc25876dbc874f (patch)
treea833bc12581bcf14800f34da5773951648110e1f
parent1cfea912a5a738befe8cfea15aa035a44dec4c8f (diff)
parentcd9ab844a4824571b1a4da7ef00e7c028365f23d (diff)
Merge "Do not set window crop of task until display is enabled" into main
-rw-r--r--services/core/java/com/android/server/wm/Task.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/Task.java b/services/core/java/com/android/server/wm/Task.java
index 1353ff09b292..a31099281306 100644
--- a/services/core/java/com/android/server/wm/Task.java
+++ b/services/core/java/com/android/server/wm/Task.java
@@ -2291,7 +2291,7 @@ class Task extends TaskFragment {
// Apply crop to root tasks only and clear the crops of the descendant tasks.
int width = 0;
int height = 0;
- if (isRootTask()) {
+ if (isRootTask() && !mTransitionController.mIsWaitingForDisplayEnabled) {
final Rect taskBounds = getBounds();
width = taskBounds.width();
height = taskBounds.height();