Merge "Capture layer and children when calling takeSurfaceControlScreenshot" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a0bcd29df
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user