Merge "Use original path if translated path doesn't exist" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3ced96178b
@@ -950,7 +950,7 @@ public class StorageManager {
|
||||
|| vol.getType() == VolumeInfo.TYPE_PUBLIC) && vol.isMountedReadable()) {
|
||||
final File internalPath = FileUtils.rewriteAfterRename(vol.getPath(),
|
||||
vol.getInternalPath(), path);
|
||||
if (internalPath != null) {
|
||||
if (internalPath != null && internalPath.exists()) {
|
||||
return internalPath;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user