Merge "Update StorageSettings to use StorageDashbordFragment."

This commit is contained in:
Daniel Nishi
2017-01-13 22:06:45 +00:00
committed by Android (Google) Code Review
3 changed files with 5 additions and 7 deletions

View File

@@ -62,7 +62,8 @@ public class StorageDashboardFragment extends DashboardFragment {
// Initialize the storage sizes that we can quickly calc.
StorageManager sm = context.getSystemService(StorageManager.class);
mVolume = sm.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL);
String volumeId = getArguments().getString(VolumeInfo.EXTRA_VOLUME_ID);
mVolume = sm.findVolumeById(volumeId);
if (!isVolumeValid()) {
getActivity().finish();
return;