Merge "Use original path if translated path doesn't exist" into mnc-dev

This commit is contained in:
Marco Nelissen
2015-07-14 17:30:03 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}
}