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

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

Merge "Reset live tile params along with resetTaskVisuals" into sc-v2-dev

parents cbafa680 a56dc760
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1508,6 +1508,16 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
            }
        }
        if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
            // resetTaskVisuals is called at the end of dismiss animation which could update
            // primary and secondary translation of the live tile cut out. We will need to do so
            // here accordingly.
            runActionOnRemoteHandles(remoteTargetHandle -> {
                TaskViewSimulator simulator = remoteTargetHandle.getTaskViewSimulator();
                simulator.taskPrimaryTranslation.value = 0;
                simulator.taskSecondaryTranslation.value = 0;
                simulator.fullScreenProgress.value = 0;
                simulator.recentsViewScale.value = 1;
            });
            // Similar to setRunningTaskHidden below, reapply the state before runningTaskView is
            // null.
            if (!mRunningTaskShowScreenshot) {