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

Commit 0560dba8 authored by Vishnu Nair's avatar Vishnu Nair Committed by Automerger Merge Worker
Browse files

Merge "Make animation leashes effect layers" into rvc-dev am: 215bb80b

Change-Id: I6b91fa321b2aed02f4921ef97b79a5383e7372f8
parents 024a5744 215bb80b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -379,7 +379,8 @@ class SurfaceAnimator {
        if (DEBUG_ANIM) Slog.i(TAG, "Reparenting to leash");
        final SurfaceControl.Builder builder = animatable.makeAnimationLeash()
                .setParent(animatable.getAnimationLeashParent())
                .setName(surface + " - animation-leash");
                .setName(surface + " - animation-leash")
                .setColorLayer();
        final SurfaceControl leash = builder.build();
        if (!hidden) {
            // TODO(b/151665759) Defer reparent calls
@@ -390,6 +391,7 @@ class SurfaceAnimator {
            // seamless rotation.
            transactionFactory.get().unsetColor(leash).show(leash).apply();
        }
        t.unsetColor(leash);
        t.setWindowCrop(leash, width, height);
        t.setPosition(leash, x, y);
        t.show(leash);