remove unused code in PrivacySettings
factory_reset is already removed from privacy_settings.xml, so it need to be removed from PrivacySettings.java too Change-Id: I0d295b90173102efb962dde496cf7a8b15d1e0a9 Signed-off-by: songkailun <songkailun@xiaomi.com>
This commit is contained in:
@@ -63,7 +63,6 @@ public class PrivacySettings extends SettingsPreferenceFragment {
|
||||
@VisibleForTesting
|
||||
static final String DATA_MANAGEMENT = "data_management";
|
||||
private static final String BACKUP_INACTIVE = "backup_inactive";
|
||||
private static final String FACTORY_RESET = "factory_reset";
|
||||
private static final String TAG = "PrivacySettings";
|
||||
private IBackupManager mBackupManager;
|
||||
private Preference mBackup;
|
||||
@@ -245,9 +244,5 @@ public class PrivacySettings extends SettingsPreferenceFragment {
|
||||
nonVisibleKeys.add(AUTO_RESTORE);
|
||||
nonVisibleKeys.add(CONFIGURE_ACCOUNT);
|
||||
}
|
||||
if (RestrictedLockUtils.hasBaseUserRestriction(context,
|
||||
UserManager.DISALLOW_FACTORY_RESET, UserHandle.myUserId())) {
|
||||
nonVisibleKeys.add(FACTORY_RESET);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user