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

Commit 844efbaa authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Use withLayer for live tile layering" into tm-qpr-dev

parents 519882d2 92b49faa
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);
        }
    }