From 92b49faa79915c129776b93d1d6792df39b118a3 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Thu, 9 Jun 2022 15:28:52 -0700 Subject: [PATCH] Use withLayer for live tile layering Bug: 233007237 Test: make sure live tile ordering in overview is correct Change-Id: I239949878634ff9a46975e7e6b92dc3be797ea88 --- .../src/com/android/quickstep/util/TaskViewSimulator.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java b/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java index dbb20e0cea..1acdec1d12 100644 --- a/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java +++ b/quickstep/src/com/android/quickstep/util/TaskViewSimulator.java @@ -390,10 +390,8 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy { .withWindowCrop(mTmpCropRect) .withCornerRadius(getCurrentCornerRadius()); - if (ENABLE_QUICKSTEP_LIVE_TILE.get() && params.getRecentsSurface() != null) { - // When relativeLayer = 0, it reverts the surfaces back to the original order. - builder.withRelativeLayerTo(params.getRecentsSurface(), - mDrawsBelowRecents ? Integer.MIN_VALUE : 0); + if (ENABLE_QUICKSTEP_LIVE_TILE.get()) { + builder.withLayer(mDrawsBelowRecents ? Integer.MIN_VALUE : 0); } }