Commit 0fd34b61 authored by Unknown's avatar Unknown

Do not display Backup & reset item

parent 7e5cd510
......@@ -81,7 +81,9 @@ public class PrivacySettings extends SettingsPreferenceFragment implements Index
super.onCreate(savedInstanceState);
// Don't allow any access if this is not an admin user.
// TODO: backup/restore currently only works with owner user b/22760572
mEnabled = UserManager.get(getActivity()).isAdminUser();
// /e/ Do NOT display Backup & reset item for the moment.
mEnabled = false;//UserManager.get(getActivity()).isAdminUser();
if (!mEnabled) {
return;
}
......
......@@ -1169,6 +1169,9 @@ public class SettingsActivity extends SettingsDrawerActivity
String backupIntent = getResources().getString(R.string.config_backup_settings_intent);
boolean useDefaultBackup = TextUtils.isEmpty(backupIntent);
// /e/ Do NOT display Backup & reset item for the moment.
useDefaultBackup = false;
setTileEnabled(new ComponentName(packageName,
Settings.PrivacySettingsActivity.class.getName()), useDefaultBackup, isAdmin, pm);
boolean hasBackupActivity = false;
......@@ -1180,6 +1183,9 @@ public class SettingsActivity extends SettingsDrawerActivity
Log.e(LOG_TAG, "Invalid backup intent URI!", e);
}
}
// /e/ Do NOT display Backup & reset item for the moment.
hasBackupActivity = false;
setTileEnabled(new ComponentName(packageName,
BackupSettingsActivity.class.getName()), hasBackupActivity,
isAdmin || Utils.isCarrierDemoUser(this), pm);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment