From 73a7daa4712ea319382111ce18e3e00dfacb7b4e Mon Sep 17 00:00:00 2001 From: Louis Chang Date: Tue, 11 Apr 2023 05:28:07 +0000 Subject: [PATCH] Fixes flicker of not applying initial transform to leash The animation leash was not applying the initial transform because the transition requires edge extension. The animation leash were reset to (0,0) in that case and cause flickering. Bug: 277169255 Test: tested on the AE app Change-Id: I11cc741cac0147b080985351b8e66d53b370289c --- .../com/android/server/wm/SurfaceAnimationRunner.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/core/java/com/android/server/wm/SurfaceAnimationRunner.java b/services/core/java/com/android/server/wm/SurfaceAnimationRunner.java index 2e5ab1a7bfe11..7572a6417f5c3 100644 --- a/services/core/java/com/android/server/wm/SurfaceAnimationRunner.java +++ b/services/core/java/com/android/server/wm/SurfaceAnimationRunner.java @@ -221,11 +221,11 @@ class SurfaceAnimationRunner { if (!mAnimationStartDeferred && mPreProcessingAnimations.isEmpty()) { mChoreographer.postFrameCallback(this::startAnimations); } - - // Some animations (e.g. move animations) require the initial transform to be - // applied immediately. - applyTransformation(runningAnim, t, 0 /* currentPlayTime */); } + + // Some animations (e.g. move animations) require the initial transform to be + // applied immediately. + applyTransformation(runningAnim, t, 0 /* currentPlayTime */); } }