Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92b49faa authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Use withLayer for live tile layering

Bug: 233007237
Test: make sure live tile ordering in overview is correct
Change-Id: I239949878634ff9a46975e7e6b92dc3be797ea88
parent c3ba24f0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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);
        }
    }