Merge "Check for null path in getInternalPathForUser"
am: 0559afdbcc
Change-Id: I0669f429a389655e04f26ab4cd19fbf69f3dbef1
This commit is contained in:
@@ -312,7 +312,9 @@ public class VolumeInfo implements Parcelable {
|
||||
* {@link android.Manifest.permission#WRITE_MEDIA_STORAGE}.
|
||||
*/
|
||||
public File getInternalPathForUser(int userId) {
|
||||
if (type == TYPE_PUBLIC) {
|
||||
if (path == null) {
|
||||
return null;
|
||||
} else if (type == TYPE_PUBLIC) {
|
||||
// TODO: plumb through cleaner path from vold
|
||||
return new File(path.replace("/storage/", "/mnt/media_rw/"));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user