commit | 80bb00b977643e8f7c7f0b30d671d3a30e9e99ff | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Tue May 04 14:32:48 2021 -0500 |
committer | chaviw <chaviw@google.com> | Tue May 04 14:32:48 2021 -0500 |
tree | 633d06f4f1fa69217c424ddf79542a2c258127a4 | |
parent | 3c865b129a45e7116418a78a9fee89fdfbef1802 [diff] |
Capture layer and children when calling takeSurfaceControlScreenshot When calling UiAutomationConnection.takeSurfaceControlScreenshot, it should capture the requested SurfaceControl and its children. The current code only captures the children. Therefore, call setChildrenOnly with false to ensure it captures the parent, as well. Test: ASurfaceControlTest Bug: 185390632 Change-Id: I62707f808934177c8db05485ac28559982b8c607