Merge "Fixes flicker of not applying initial transform to leash" into tm-qpr-dev
This commit is contained in:
@@ -220,13 +220,13 @@ class SurfaceAnimationRunner {
|
|||||||
if (!mAnimationStartDeferred && mPreProcessingAnimations.isEmpty()) {
|
if (!mAnimationStartDeferred && mPreProcessingAnimations.isEmpty()) {
|
||||||
mChoreographer.postFrameCallback(this::startAnimations);
|
mChoreographer.postFrameCallback(this::startAnimations);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Some animations (e.g. move animations) require the initial transform to be
|
// Some animations (e.g. move animations) require the initial transform to be
|
||||||
// applied immediately.
|
// applied immediately.
|
||||||
applyTransformation(runningAnim, t, 0 /* currentPlayTime */);
|
applyTransformation(runningAnim, t, 0 /* currentPlayTime */);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private boolean requiresEdgeExtension(AnimationSpec a) {
|
private boolean requiresEdgeExtension(AnimationSpec a) {
|
||||||
return a.asWindowAnimationSpec() != null && a.asWindowAnimationSpec().hasExtension();
|
return a.asWindowAnimationSpec() != null && a.asWindowAnimationSpec().hasExtension();
|
||||||
|
|||||||
Reference in New Issue
Block a user