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:
Kenny Guy
2015-07-15 15:54:38 +01:00
parent cd075edf6d
commit 9854dfaf1d

View File

@@ -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);
}