Show disabled trust agents as off.
When trust agents are disabled by the admin show the greyed out toggle as off. Bug: 22397930 Change-Id: I687a5dee0ca9bed5015a4af080270f7bafa5a37d
This commit is contained in:
@@ -113,6 +113,7 @@ public class TrustAgentSettings extends SettingsPreferenceFragment implements
|
||||
|
||||
if (disabledByDevicePolicy
|
||||
&& mDpm.getTrustAgentConfiguration(null, agent.component) == null) {
|
||||
preference.setChecked(false);
|
||||
preference.setEnabled(false);
|
||||
preference.setSummary(R.string.trust_agent_disabled_device_admin);
|
||||
}
|
||||
|
Reference in New Issue
Block a user