Fixing a bug in the security menu.

Change-Id: I583a391773a1cdee429e8fe92f7347883f301825
This commit is contained in:
Ido Ofir
2014-06-20 11:30:01 -07:00
parent f2724a6131
commit 31648b54dc

View File

@@ -321,7 +321,8 @@ public class SecuritySettings extends SettingsPreferenceFragment
TrustAgentUtils.TrustAgentComponentInfo trustAgentComponentInfo =
TrustAgentUtils.getSettingsComponent(pm, resolveInfo);
if (trustAgentComponentInfo.componentName == null ||
!enabledTrustAgents.contains(trustAgentComponentInfo.componentName) ||
!enabledTrustAgents.contains(
TrustAgentUtils.getComponentName(resolveInfo)) ||
TextUtils.isEmpty(trustAgentComponentInfo.title)) continue;
Preference trustAgentPreference =
new Preference(securityCategory.getContext());