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
This commit is contained in:
Louis Chang
2023-04-11 05:28:07 +00:00
parent 368cb300b0
commit f91f797e5a

View File

@@ -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 */);
}
}