Progress towards split storage categories.

Cleans up StorageVolumePreferenceCategory creation, and uses new
isPrimary() API instead of passing around hacky "i == 0" derived
value.

Bug: 7003520
Change-Id: I9eb7164035b5368ee795e35b22e750aebbf3b159
This commit is contained in:
Jeff Sharkey
2012-09-06 22:46:21 -07:00
parent 88220b7204
commit 96c2f8c508
4 changed files with 69 additions and 75 deletions

View File

@@ -195,7 +195,7 @@ public class MiscFilesHandler extends ListActivity {
final StorageVolume storageVolume = activity.getIntent().getParcelableExtra(
StorageVolume.EXTRA_STORAGE_VOLUME);
StorageMeasurement mMeasurement = StorageMeasurement.getInstance(
activity, storageVolume, new UserHandle(UserHandle.USER_CURRENT), false);
activity, storageVolume, UserHandle.CURRENT);
if (mMeasurement == null) return;
mData = (ArrayList<StorageMeasurement.FileInfo>) mMeasurement.mFileInfoForMisc;
if (mData != null) {