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

Commit 6bca637e authored by Bartosz Bialek's avatar Bartosz Bialek Committed by android-build-merger
Browse files

Merge "Do not scan a file which cannot be read" am: 258baa35

am: 3fc27c34

* commit '3fc27c34':
  Do not scan a file which cannot be read
parents 1cab5748 3fc27c34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1392,7 +1392,7 @@ public class MediaScanner implements AutoCloseable {
            prescan(path, true);

            File file = new File(path);
            if (!file.exists()) {
            if (!file.exists() || !file.canRead()) {
                return null;
            }