Merge "Reset live tile params along with resetTaskVisuals" into sc-v2-dev am: 260b90c7ad am: 2862aecc40

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16360392

Change-Id: I1e500d12e536fcf00eb7ad746e30e5e8fd75ecc9
This commit is contained in:
Tracy Zhou
2021-11-30 05:13:23 +00:00
committed by Automerger Merge Worker
@@ -1510,6 +1510,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) {