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:
@@ -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