Merge "Remove duplicates in Security Settings" into oc-dev

am: 96a8dffafb

Change-Id: I1e987af06d086fd971e2865d5fa854b58ce0e409
This commit is contained in:
Matthew Fritze
2017-05-23 22:21:18 +00:00
committed by android-build-merger
5 changed files with 73 additions and 13 deletions

View File

@@ -102,6 +102,8 @@ public class SecuritySettings extends SettingsPreferenceFragment
private static final String KEY_UNIFICATION = "unification";
@VisibleForTesting
static final String KEY_LOCKSCREEN_PREFERENCES = "lockscreen_preferences";
private static final String KEY_ENCRYPTION_AND_CREDENTIALS = "encryption_and_credential";
private static final String KEY_LOCATION_SCANNING = "location_scanning";
private static final int SET_OR_CHANGE_LOCK_METHOD_REQUEST = 123;
private static final int CHANGE_TRUST_AGENT_SETTINGS = 126;
@@ -930,7 +932,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
@Override
public List<String> getNonIndexableKeys(Context context) {
final List<String> keys = new ArrayList<String>();
final List<String> keys = super.getNonIndexableKeys(context);
LockPatternUtils lockPatternUtils = new LockPatternUtils(context);
@@ -952,6 +954,14 @@ public class SecuritySettings extends SettingsPreferenceFragment
keys.add(KEY_ENTERPRISE_PRIVACY);
}
// Duplicate in special app access
keys.add(KEY_MANAGE_DEVICE_ADMIN);
// Duplicates between parent-child
keys.add((new LocationPreferenceController(context)).getPreferenceKey());
keys.add(KEY_ENCRYPTION_AND_CREDENTIALS);
keys.add(KEY_SCREEN_PINNING);
keys.add(KEY_LOCATION_SCANNING);
return keys;
}
}