Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73a7daa4 authored by Louis Chang's avatar Louis Chang
Browse files

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
parent 36fef761
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -221,13 +221,13 @@ 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 */);
        }
    }
    }

    private boolean requiresEdgeExtension(AnimationSpec a) {
        return a.asWindowAnimationSpec() != null && a.asWindowAnimationSpec().hasExtension();