Merge "Use withLayer for live tile layering" into tm-qpr-dev am: 844efbaa75

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18820874

Change-Id: I324e87f148f9a45934212f0c4b0ac9554f866340
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tracy Zhou
2022-06-14 18:34:35 +00:00
committed by Automerger Merge Worker
@@ -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);
}
}