Alex Johnston 1867db33c9 Prevent location for the work profile from being enabled
* Previously the user could still enable location for the work profile
  even after enabling DISALLOW_CONFIG_LOCATION. This was because the
  LocationForWorkPreferenceController checked whether the base restriction
  was set and whether the restriction was enforced by the admin in the
  same condition.
* This was fixed by giving the admin precedence and moving the check for
  the base restriction to only be checked if the admin has not enforced
  the DISALLOW_CONFIG_LOCATION or DISALLOW_SHARING_LOCATION restriction.

Bug: 147758996
Test: Manual testing with Settings and TestDPC
      atest com.android.settings.location.LocationForWorkPreferenceControllerTest

Change-Id: Ide341f2dab4f59f26ffa0c929ba412d61b6ebf1a
2020-01-30 16:59:33 +00:00
2019-03-27 07:14:20 +08:00
2019-04-04 12:49:15 -07:00
2019-11-25 20:28:35 +09:00
2020-01-24 09:44:43 -08:00
2019-02-06 15:44:40 +00:00
2020-01-18 07:19:59 +08:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%