Hide the Deletion Helper entry points from Settings.

Remove the menu item which enters the Deletion Helper fragment.
The deletion helper can still be accessed if storage management is
enabled in the storage management settings.

Bug: 28967987
Change-Id: Iff4730998edbab5889b2b8e23b6ad260ae0c0359
This commit is contained in:
Daniel Nishi
2016-05-26 11:12:56 -07:00
parent 74cc9772e9
commit 728eebe3c0

View File

@@ -375,7 +375,7 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
mount.setVisible(false);
unmount.setVisible(false);
format.setVisible(false);
manage.setVisible(true);
manage.setVisible(getResources().getBoolean(R.bool.config_has_storage_manager));
} else {
rename.setVisible(mVolume.getType() == VolumeInfo.TYPE_PRIVATE);
mount.setVisible(mVolume.getState() == VolumeInfo.STATE_UNMOUNTED);