Merge "Don't fade out live tile when dismissed" into tm-dev am: c8b095e28c am: 2c3c632e5a am: 3811fadcd0

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

Change-Id: Ib4bb11b6910cb00e6f1d17cb7b7cf5ab9fdd0fe0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-05-04 04:59:32 +00:00
committed by Automerger Merge Worker
@@ -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 =