RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
Bug: 217388602 Bug: 218875965 Test: atest EnterpriseResourcesTests Test: manual Change-Id: I4775d7741c7819fd811c3fc4eda1636b1e04b398
This commit is contained in:
@@ -52,16 +52,16 @@ class PrivacyPreferenceControllerHelper {
|
||||
|
||||
final String organizationName = mFeatureProvider.getDeviceOwnerOrganizationName();
|
||||
if (organizationName == null) {
|
||||
preference.setSummary(mDevicePolicyManager.getString(
|
||||
preference.setSummary(mDevicePolicyManager.getResources().getString(
|
||||
MANAGED_DEVICE_INFO_SUMMARY,
|
||||
() -> mContext.getString(
|
||||
R.string.enterprise_privacy_settings_summary_generic)));
|
||||
} else {
|
||||
preference.setSummary(mDevicePolicyManager
|
||||
.getString(MANAGED_DEVICE_INFO_SUMMARY_WITH_NAME,
|
||||
() -> mContext.getResources().getString(
|
||||
R.string.enterprise_privacy_settings_summary_with_name,
|
||||
organizationName), organizationName));
|
||||
preference.setSummary(mDevicePolicyManager.getResources().getString(
|
||||
MANAGED_DEVICE_INFO_SUMMARY_WITH_NAME,
|
||||
() -> mContext.getResources().getString(
|
||||
R.string.enterprise_privacy_settings_summary_with_name,
|
||||
organizationName), organizationName));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user