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

Change-Id: I5ca34ef22f381aa83e5da0231dc9c08b9266e5e0
This commit is contained in:
Automerger Merge Worker
2020-03-06 02:39:24 +00:00

View File

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