Merge "Do not scan a file which cannot be read"

am: 258baa3

* commit '258baa35c080cc74e83c9324c900f6725288b7cf':
  Do not scan a file which cannot be read
This commit is contained in:
Bartosz Bialek
2016-03-17 15:48:23 +00:00
committed by android-build-merger

View File

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