summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Kevin Chyn <kchyn@google.com> 2023-05-08 22:00:59 +0000
committer Kevin Chyn <kchyn@google.com> 2023-05-11 22:38:04 +0000
commit0f6b4e2348ccba918a52074be7321e08ad9d9cb0 (patch)
tree1d3a16066abda85515f7de2cf2594a7fcad4d29d /api/api.go
parent50f9e8baef9639f708a4bb1741c1698c6bafbb92 (diff)
Cleanup mRearDisplayPresentationController if SecurityException caught
If a SecurityException occurs when invoking DeviceStateManager#requestState (e.g. if not the caller is not in foreground, or if it does not have the required permissions), we should first clean up our local state before re-throwing the SecurityException to the caller. Otherwise, subsequent attempts to startRearDisplayPresentationSession will always fail. Bug: 270671994 Test: atest ExtensionRearDisplayPresentationKeyguardTest Change-Id: Ie102b03b722f018dc093ef9ab8c5c41b141a5bd0
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions