Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bfcbf1b authored by Unknown's avatar Unknown
Browse files

Do not display Backup & Reset item

parent 5b526842
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2009 The Android Open Source Project
 * Copyright (C) 2018 e.foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -82,7 +83,8 @@ public class PrivacySettings extends SettingsPreferenceFragment {
        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;
        }
+3 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2014 The Android Open Source Project
 * Copyright (C) 2018 e.foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -842,8 +843,9 @@ public class SettingsActivity extends SettingsDrawerActivity
                || somethingChanged;

        // Enable/disable backup settings depending on whether the user is admin.
        // /e/ Do NOT display Backup & reset item for the moment. 
        somethingChanged = setTileEnabled(new ComponentName(packageName,
                BackupSettingsActivity.class.getName()), true, isAdmin)
                BackupSettingsActivity.class.getName()), true, false)
                || somethingChanged;

        somethingChanged = setTileEnabled(new ComponentName(packageName,