Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ab5faa8 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 310f7b88
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment