Merge "Change animation-leash to be a container layer" into rvc-dev am: a666d80531 am: 2b84a80493

Change-Id: I6ae6ee7dcc31fc71265e2548936638fe0571ab2b
This commit is contained in:
Automerger Merge Worker
2020-03-06 02:56:09 +00:00

View File

@@ -379,10 +379,8 @@ class SurfaceAnimator {
final SurfaceControl.Builder builder = animatable.makeAnimationLeash()
.setParent(animatable.getAnimationLeashParent())
.setHidden(hidden)
.setName(surface + " - animation-leash")
.setColorLayer();
.setName(surface + " - animation-leash");
final SurfaceControl leash = builder.build();
t.unsetColor(leash);
t.setWindowCrop(leash, width, height);
t.setPosition(leash, x, y);
t.show(leash);