RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
Bug: 217388602
Bug: 218875965
Test: atest EnterpriseResourcesTests
Test: manual
Change-Id: I4775d7741c7819fd811c3fc4eda1636b1e04b398
(cherry picked from commit de78149c16
)
Merged-In: I4775d7741c7819fd811c3fc4eda1636b1e04b398
This commit is contained in:
committed by
Kholoud Mohamed
parent
5cc09fbd7f
commit
90afe190e8
@@ -44,13 +44,13 @@ public class AlwaysOnVpnCurrentUserPreferenceController
|
||||
public void updateState(Preference preference) {
|
||||
if (mFeatureProvider.isInCompMode()) {
|
||||
preference.setTitle(
|
||||
mDevicePolicyManager.getString(
|
||||
mDevicePolicyManager.getResources().getString(
|
||||
ALWAYS_ON_VPN_PERSONAL_PROFILE,
|
||||
() -> mContext.getString(
|
||||
R.string.enterprise_privacy_always_on_vpn_personal)));
|
||||
} else {
|
||||
preference.setTitle(
|
||||
mDevicePolicyManager.getString(ALWAYS_ON_VPN_DEVICE,
|
||||
mDevicePolicyManager.getResources().getString(ALWAYS_ON_VPN_DEVICE,
|
||||
() -> mContext.getString(
|
||||
R.string.enterprise_privacy_always_on_vpn_device)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user