Update StorageSettings to use StorageDashbordFragment.

It previously was set to use the PrivateVolumeSettings. By
swapping it with the new view, we can retain the existing
behavior for external storage (PublicVolumeSettings).

This also restores the summary text to the main Settings
screen.

Bug: 34197071, 34195303
Test: Verified locally that StorageDashboardFragment is started
      instead of the PrivateVolumeSettings.

Change-Id: I5de0ea8de799d758272a1406856ae7de9b6fcc8e
This commit is contained in:
Daniel Nishi
2017-01-10 14:22:12 -08:00
parent 4185b2fef3
commit 769d16ed65
3 changed files with 6 additions and 8 deletions

View File

@@ -61,7 +61,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;