Loading res/xml/security_settings_app_cyanogenmod.xml +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:key="app_security" android:key="app_security_key" android:title="@string/app_security_title"> <PreferenceScreen Loading src/com/android/settings/SecuritySettings.java +8 −2 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ public class SecuritySettings extends SettingsPreferenceFragment private static final boolean ONLY_ONE_TRUST_AGENT = true; // CyanogenMod Additions private static final String KEY_APP_SECURITY_CATEGORY = "app_security"; private static final String KEY_APP_SECURITY_CATEGORY = "app_security_key"; private static final String KEY_BLACKLIST = "blacklist"; private PackageManager mPM; Loading Loading @@ -457,11 +457,17 @@ public class SecuritySettings extends SettingsPreferenceFragment mBlacklist = (PreferenceScreen) root.findPreference(KEY_BLACKLIST); // Determine options based on device telephony support if (!pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { if (!pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) || !BlacklistUtils.isBlacklistFeaturePresent(getActivity())) { // No telephony, remove dependent options PreferenceGroup appCategory = (PreferenceGroup) root.findPreference(KEY_APP_SECURITY_CATEGORY); appCategory.removePreference(mBlacklist); mBlacklist = null; if (appCategory.getPreferenceCount() == 0) { root.removePreference(appCategory); } } // The above preferences come and go based on security state, so we need to update Loading Loading
res/xml/security_settings_app_cyanogenmod.xml +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:key="app_security" android:key="app_security_key" android:title="@string/app_security_title"> <PreferenceScreen Loading
src/com/android/settings/SecuritySettings.java +8 −2 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ public class SecuritySettings extends SettingsPreferenceFragment private static final boolean ONLY_ONE_TRUST_AGENT = true; // CyanogenMod Additions private static final String KEY_APP_SECURITY_CATEGORY = "app_security"; private static final String KEY_APP_SECURITY_CATEGORY = "app_security_key"; private static final String KEY_BLACKLIST = "blacklist"; private PackageManager mPM; Loading Loading @@ -457,11 +457,17 @@ public class SecuritySettings extends SettingsPreferenceFragment mBlacklist = (PreferenceScreen) root.findPreference(KEY_BLACKLIST); // Determine options based on device telephony support if (!pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { if (!pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) || !BlacklistUtils.isBlacklistFeaturePresent(getActivity())) { // No telephony, remove dependent options PreferenceGroup appCategory = (PreferenceGroup) root.findPreference(KEY_APP_SECURITY_CATEGORY); appCategory.removePreference(mBlacklist); mBlacklist = null; if (appCategory.getPreferenceCount() == 0) { root.removePreference(appCategory); } } // The above preferences come and go based on security state, so we need to update Loading