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

Commit 13b16060 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Don't fade out live tile when dismissed

* Fading out exposes the wallpaper underneath
since the task is layered below launcher and
we draw a cutout in the scrim

Fixes: 230916221
Test: Swiping up on live tile task doesn't fade
Change-Id: Ie4a81aeed3de242146248ecae7734e5e02985040
parent 0c625f74
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2704,13 +2704,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
            PendingAnimation anim) {
        // Use setFloat instead of setViewAlpha as we want to keep the view visible even when it's
        // alpha is set to 0 so that it can be recycled in the view pool properly
        if (ENABLE_QUICKSTEP_LIVE_TILE.get() && taskView.isRunningTask()) {
            runActionOnRemoteHandles(remoteTargetHandle -> {
                TransformParams params = remoteTargetHandle.getTransformParams();
                anim.setFloat(params, TransformParams.TARGET_ALPHA, 0,
                        clampToProgress(FINAL_FRAME, 0, 0.5f));
            });
        }
        anim.setFloat(taskView, VIEW_ALPHA, 0,
                clampToProgress(isOnGridBottomRow(taskView) ? ACCEL : FINAL_FRAME, 0, 0.5f));
        FloatProperty<TaskView> secondaryViewTranslate =