Public volumes belong to a single user.

am: 8b38d083c4

Change-Id: I659a2bb47472c71a7248ccb54281073a24e8a19d
This commit is contained in:
Jeff Sharkey
2016-11-07 23:54:51 +00:00
committed by android-build-merger

View File

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