am 3ced9617: Merge "Use original path if translated path doesn\'t exist" into mnc-dev

* commit '3ced96178b1b132705e773736cbb707a3a0cd951':
  Use original path if translated path doesn't exist
This commit is contained in:
Marco Nelissen
2015-07-14 17:36:07 +00:00
committed by Android Git Automerger

View File

@@ -968,7 +968,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;
}
}