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

Skip to content
Commit 5f2bc22d authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan
Browse files

Combine AppOpsManager arrays into one

AppOpsManager currently has multiple arrays which are all related:

- sOpToSwitch
- sOpToString
- sOpNames
- sOpPerms
- sOpRestrictions
- sOpAllowSystemRestrictionBypass
- sOpDefaultMode
- sOpDisableReset
- sOpRestrictRead

Despite being different arrays, they're essentially a single list of
objects with each field sliced into a different array.

As the entries in these arrays grows, they are are difficult to keep
track of. To simplify things, we can simply join them all into a single
list of objects. Because there are so many fields, we use the builder
pattern to prevent the array from becoming unreadable.

Test: presubmit
Bug: 242097113
No-Typo-Check: typo EMERGECY is preexisting and non-trivial to fix
Change-Id: I1c54a18fc8ca2de6c5ab4a2ae62d1943fcbaea62
parent 2a1fdce4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment