Merge "Public volumes belong to a single user." into nyc-mr1-dev

This commit is contained in:
Jeff Sharkey
2016-11-07 23:43:43 +00:00
committed by Android (Google) Code Review

View File

@@ -161,7 +161,8 @@ public class ExternalStorageProvider extends DocumentsProvider {
final VolumeInfo privateVol = mStorageManager.findPrivateForEmulated(volume); final VolumeInfo privateVol = mStorageManager.findPrivateForEmulated(volume);
title = mStorageManager.getBestVolumeDescription(privateVol); title = mStorageManager.getBestVolumeDescription(privateVol);
} }
} else if (volume.getType() == VolumeInfo.TYPE_PUBLIC) { } else if (volume.getType() == VolumeInfo.TYPE_PUBLIC
&& volume.getMountUserId() == userId) {
rootId = volume.getFsUuid(); rootId = volume.getFsUuid();
title = mStorageManager.getBestVolumeDescription(volume); title = mStorageManager.getBestVolumeDescription(volume);
} else { } else {