Merge "Capture layer and children when calling takeSurfaceControlScreenshot" into sc-dev am: 9a0bcd29df

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14430168

Change-Id: I2a8e936eb50e33b38c2caf27b3b0e023d500c65d
This commit is contained in:
Chavi Weingarten
2021-05-05 19:56:31 +00:00
committed by Automerger Merge Worker

View File

@@ -220,7 +220,9 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub {
final long identity = Binder.clearCallingIdentity();
try {
captureBuffer = SurfaceControl.captureLayers(
new SurfaceControl.LayerCaptureArgs.Builder(surfaceControl).build());
new SurfaceControl.LayerCaptureArgs.Builder(surfaceControl)
.setChildrenOnly(false)
.build());
} finally {
Binder.restoreCallingIdentity(identity);
}