From f91f797e5a5e15d8a044446aa0e9eae936aaf87a 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 Merged-In: 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 1ae7816ecd246..51ace49fd50f2 100644 --- a/services/core/java/com/android/server/wm/SurfaceAnimationRunner.java +++ b/services/core/java/com/android/server/wm/SurfaceAnimationRunner.java @@ -220,11 +220,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 */); } }