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

Commit 124e6176 authored by Irem Uguz's avatar Irem Uguz
Browse files

Call DPM from RestrictedPreferenceHelper

Call DevicePolicyManager.getEnforcingAdminsForPolicy API to check for
user restrictions on RestrictedPreferenceHelper.

Update mAttrUserRestriction field from String to an inner class
Restriction. This way, we'll have a clear way of representing user
restriction or a device policy which can be enforced by admins.

Test: atest com.android.settingslib.RestrictedPreferenceHelperTest
Flag: android.app.admin.flags.policy_transparency_refactor_enabled
Bug: 414733570

Change-Id: I0dfd6490ffee18f6f9ad3420e107607f9d3633be
parent 029bb2c8
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