Loading res/xml/system_dashboard_fragment.xml +3 −2 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2016 The Android Open Source Project Copyright (C) 2019 e.foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Loading Loading @@ -30,7 +31,7 @@ settings:controller="com.android.settings.gestures.GesturesSettingPreferenceController"/> <!-- Backup --> <Preference <!-- <Preference android:key="backup_settings" android:title="@string/privacy_settings_title" android:summary="@string/summary_placeholder" Loading @@ -38,7 +39,7 @@ android:order="-60" settings:controller="com.android.settings.backup.BackupSettingsActivityPreferenceController"> <intent android:action="android.settings.BACKUP_AND_RESET_SETTINGS" /> </Preference> </Preference> --> <Preference android:key="reset_dashboard" Loading src/com/android/settings/PrivacySettings.java +3 −1 Original line number Diff line number Diff line /* * Copyright (C) 2009 The Android Open Source Project * Copyright (C) 2019 e.foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -81,7 +82,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; if (!mEnabled) { return; } Loading src/com/android/settings/SettingsActivity.java +3 −1 Original line number Diff line number Diff line /* * Copyright (C) 2014 The Android Open Source Project * Copyright (C) 2019 e.foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -703,8 +704,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(changedList, new ComponentName(packageName, BackupSettingsActivity.class.getName()), true, isAdmin) BackupSettingsActivity.class.getName()), true, false) || somethingChanged; somethingChanged = setTileEnabled(changedList, new ComponentName(packageName, Loading Loading
res/xml/system_dashboard_fragment.xml +3 −2 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2016 The Android Open Source Project Copyright (C) 2019 e.foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Loading Loading @@ -30,7 +31,7 @@ settings:controller="com.android.settings.gestures.GesturesSettingPreferenceController"/> <!-- Backup --> <Preference <!-- <Preference android:key="backup_settings" android:title="@string/privacy_settings_title" android:summary="@string/summary_placeholder" Loading @@ -38,7 +39,7 @@ android:order="-60" settings:controller="com.android.settings.backup.BackupSettingsActivityPreferenceController"> <intent android:action="android.settings.BACKUP_AND_RESET_SETTINGS" /> </Preference> </Preference> --> <Preference android:key="reset_dashboard" Loading
src/com/android/settings/PrivacySettings.java +3 −1 Original line number Diff line number Diff line /* * Copyright (C) 2009 The Android Open Source Project * Copyright (C) 2019 e.foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -81,7 +82,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; if (!mEnabled) { return; } Loading
src/com/android/settings/SettingsActivity.java +3 −1 Original line number Diff line number Diff line /* * Copyright (C) 2014 The Android Open Source Project * Copyright (C) 2019 e.foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -703,8 +704,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(changedList, new ComponentName(packageName, BackupSettingsActivity.class.getName()), true, isAdmin) BackupSettingsActivity.class.getName()), true, false) || somethingChanged; somethingChanged = setTileEnabled(changedList, new ComponentName(packageName, Loading