From a56dc760dd923e1182bbaf443f1bb044bcad29ff Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Tue, 30 Nov 2021 00:46:23 +0000 Subject: [PATCH] Reset live tile params along with resetTaskVisuals The dismissal animation doesn't return the translationY to 0, but resetTaskVisuals does. Fixes: 207782306 Test: Drag live tile to dismiss lightly so it doesn't succeed. When it comes back, make sure it matches the cutout. Change-Id: I64ee06ad72c403ab4fdd4671d08b1843a3e89253 --- .../src/com/android/quickstep/views/RecentsView.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index e9010d2a46..3f212c6b80 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1508,6 +1508,16 @@ public abstract class RecentsView { + 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) {