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

Skip to content
Commit 720aace3 authored by Winson's avatar Winson Committed by Winson Chiu
Browse files

Catch Security and IllegalStateExceptions when enabling overlays

As part of changes in R, it is now possible for OverlayManager
to throw SecurityExceptions for failure cases besides the
change overlays permission.

This can include actor enforcement, or app visibility, or something like
a package not being installed for a user. Previously, these checks
were not done and the OM would continue silently as normal. Now it will
fail. This behavior has been gated on targetSdk R, but requires changes
for existing code in the tree, as they target the platform development
version.

This treats them as general failures.

Bug: 147340954

Change-Id: If921e4ddf855e9162efb46abb4557b6c98c1e6b9
parent 903f9333
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