Change animation-leash to be a container layer

Temporary revert to fix flicker issues.

Bug: b/149792636, b/150829791
Test: go/wm-smoke
Change-Id: I016dfd937ea844f0687195d1670471dfdcbd8cdd
This commit is contained in:
Vishnu Nair
2020-03-05 14:40:27 -08:00
parent d11f567891
commit 10a09f5eaf

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);