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

Commit 3fc27c34 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

* commit '258baa35':
  Do not scan a file which cannot be read
parents 14fa027f 258baa35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1390,7 +1390,7 @@ public class MediaScanner
            prescan(path, true);

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