summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2025-02-05 17:53:23 +0800
committer Riddle Hsu <riddlehsu@google.com> 2025-02-05 03:18:45 -0800
commit9ab5faa8a097a85c1fa632e765a90590fd357cd7 (patch)
treedae91d411f74caaaac63a21ef2395b243136fb69 /api/api.go
parent310f7b88cd153fb4fb0ceb1ceab2bd2658333e8f (diff)
Avoid putting a process with system dialog to cached state
There could be a non-persistent process showing a system dialog (only platform signature permission INTERNAL_SYSTEM_WINDOW can use it). With not excluding TYPE_SYSTEM_DIALOG by onWindowSurfaceVisibilityChanged, it can utilize setHasOverlayUi to keep the process in active state. This doesn't change isSystemAlertWindowType because other places may use it to handle permission checking. Bug: 349049402 Flag: EXEMPT bugfix Test: Create a test app with permission INTERNAL_SYSTEM_WINDOW and show a TYPE_SYSTEM_DIALOG window without any other components. `adb shell dumpsys activity lru` should not show the process with cached state. Change-Id: I6cb8bad5afd5a1311210645f784dd4d3fdc22c23
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions