Tommy Webb ec595b5b38 fixup! Fix background data clobbering other policies
* Rename variables/arguments to clarify that we are working with policy
  flags, meaning that there can be multiple policies described by a
  uid policy, not just one.
* When checking policies for a policy flag, do a proper flag check,
  rather than a direct comparison that assumes one single policy.
* Only alter the displayed setting for the "Background network access"
  and "Unrestricted mobile data usage" toggles in response to underlying
  policy changes, to ensure their state represents the current reality.
* Add a couple explanatory comments.

Test: Manual: Install an app that does not have INTERNET permission.
Open the "Unrestricted mobile data" page of Settings. Try to activate
the toggle for such an app. The toggle should activate successfully
without needing to be tapped twice.

Issue: calyxos#2547
Change-Id: I9f2f028be4a21158a68c60982253d85586f60cdb
2025-12-10 00:41:32 +09:00
2025-12-10 00:41:25 +09:00
2024-07-30 11:34:24 +08:00
2025-12-10 00:41:11 +09:00
2024-11-28 09:15:16 +00:00
2024-11-22 12:59:43 +00:00
Description
No description provided
1.5 GiB
Languages
Java 89.7%
Kotlin 10.3%