New UI for controlling USB
Create a new UI for managing USB access control. This UI is implemented as a transparent popup triggered by a persistent notification. Delete the old UI for controlling this. It is no longer used. Bug: 18905620 Change-Id: I54186961414447a9d37f68e946e1c167506170ae
This commit is contained in:
@@ -273,7 +273,6 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
|
||||
final MenuItem unmount = menu.findItem(R.id.storage_unmount);
|
||||
final MenuItem format = menu.findItem(R.id.storage_format);
|
||||
final MenuItem migrate = menu.findItem(R.id.storage_migrate);
|
||||
final MenuItem usb = menu.findItem(R.id.storage_usb);
|
||||
|
||||
// Actions live in menu for non-internal private volumes; they're shown
|
||||
// as preference items for public volumes.
|
||||
@@ -293,9 +292,6 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
|
||||
final VolumeInfo privateVol = getActivity().getPackageManager()
|
||||
.getPrimaryStorageCurrentVolume();
|
||||
migrate.setVisible(!Objects.equals(mVolume, privateVol));
|
||||
|
||||
// TODO: show usb if we jumped past first screen
|
||||
usb.setVisible(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -324,10 +320,6 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
|
||||
intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, mVolume.getId());
|
||||
startActivity(intent);
|
||||
return true;
|
||||
case R.id.storage_usb:
|
||||
startFragment(this, UsbSettings.class.getCanonicalName(),
|
||||
R.string.storage_title_usb, 0, null);
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user