Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa411036 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Use original path if translated path doesn't exist

Bug: 22376538
Change-Id: I2f6af4fa31c097e2e2d619a068cf83721091c450
parent 148c7c5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
                    }
                }