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

Commit b0a6846c authored by Tracy Zhou's avatar Tracy Zhou Committed by Automerger Merge Worker
Browse files

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

parents d25033a6 844efbaa
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);
        }
    }