commit | c5919749ea7a54191a343f9c465bc714c661f916 | [log] [tgz] |
---|---|---|
author | Jon Spivack <spivack@google.com> | Wed Apr 28 11:43:34 2021 -0700 |
committer | Jon Spivack <spivack@google.com> | Wed Apr 28 18:26:13 2021 -0700 |
tree | 86751cb739e424320eb1bc067493ae22e886e34f | |
parent | f4bd91f0ab88593f20310a8827dd1a4505023b7d [diff] |
Check screen context permissions for NIU Actions This checks for the ASSIST_STRUCTURE_ENABLED and ASSIST_SCREENSHOT_ENABLED permissions before sending NIU Actions Intents. If either permission is absent, the screenshot is not sent, and an error code is added to the Intent. Bug: 182010359 Test: Manual (toggled permissions and clicked NIU Actions buttons on Wembley device) Test: m -j RunLauncherGoGoogleRoboTests Change-Id: Icf0db739f5010862cc2bac496f5410665625f3be