From bd29dde62343fa86ea758d2a4bb8d84c02b0d513 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 20 Dec 2023 19:48:05 +0000 Subject: [PATCH] Update live tile during dismiss anim even if disabled at start Before we only checked if live tile drawing was enabled at the start of the dismiss animation, and didn't add the frame callback listener at all if not. Now we always add the frame callback listener when dismissing the running task, and check if live tile drawing is enabled within the listener in case there is a race. Fixes: 312261719 Test: Swipe up to Overview from an app, immediately swipe up to dismiss the app; ensure it always follows your finger Flag: None Change-Id: Ia12b02d5989c09d2104edd202f8c016f202f76b8 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 87cee63f9e..960fe6ce10 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -3246,8 +3246,9 @@ public abstract class RecentsView { + if (!mEnableDrawingLiveTile) return; runActionOnRemoteHandles( remoteTargetHandle -> remoteTargetHandle.getTaskViewSimulator() .taskSecondaryTranslation.value = mOrientationHandler