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

Commit 758bbeb6 authored by Alex Chau's avatar Alex Chau
Browse files

Update comments on createAdjacentPageAnimForTaskLaunch

- Added comments to clarify pivot/drawBelowRecents is only needed if live tile isn't launching
- Otherwise TaskViewUtils.createRecentsWindowAnimator already take cares of the scrol offset and drawsBelowRecents.

Fix: 361744056
Test: manual
Flag: EXEMPT refactor
Change-Id: I10e7d72daaa13787a9fd19524f7f45c4b0d31642
parent fb172faa
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5430,7 +5430,6 @@ public abstract class RecentsView<

        int taskIndex = indexOfChild(taskView);
        int centerTaskIndex = getCurrentPage();
        boolean isRunningTask = taskView.isRunningTask();

        float toScale = getMaxScaleForFullScreen();
        boolean showAsGrid = showAsGrid();
@@ -5450,7 +5449,9 @@ public abstract class RecentsView<
                    setPivotX(mTempPointF.x);
                    setPivotY(mTempPointF.y);

                    if (!isRunningTask) {
                    // If live tile is not launching, apply pivot to live tile as well and bring it
                    // above RecentsView to avoid wallpaper blur from being applied to it.
                    if (!taskView.isRunningTask()) {
                        runActionOnRemoteHandles(
                                remoteTargetHandle -> {
                                    remoteTargetHandle.getTaskViewSimulator().setPivotOverride(