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:
@@ -375,7 +375,7 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
|
|||||||
mount.setVisible(false);
|
mount.setVisible(false);
|
||||||
unmount.setVisible(false);
|
unmount.setVisible(false);
|
||||||
format.setVisible(false);
|
format.setVisible(false);
|
||||||
manage.setVisible(true);
|
manage.setVisible(getResources().getBoolean(R.bool.config_has_storage_manager));
|
||||||
} else {
|
} else {
|
||||||
rename.setVisible(mVolume.getType() == VolumeInfo.TYPE_PRIVATE);
|
rename.setVisible(mVolume.getType() == VolumeInfo.TYPE_PRIVATE);
|
||||||
mount.setVisible(mVolume.getState() == VolumeInfo.STATE_UNMOUNTED);
|
mount.setVisible(mVolume.getState() == VolumeInfo.STATE_UNMOUNTED);
|
||||||
|
Reference in New Issue
Block a user