Merge "Fix application got cropped after reparented to other displays"

This commit is contained in:
TreeHugger Robot
2018-11-19 15:05:35 +00:00
committed by Android (Google) Code Review

View File

@@ -305,7 +305,7 @@ class SurfaceAnimator {
.setName(surface + " - animation-leash")
.setSize(width, height);
final SurfaceControl leash = builder.build();
t.setWindowCrop(surface, width, height);
t.setWindowCrop(leash, width, height);
if (!hidden) {
t.show(leash);
}