also blacklist .tmp and .bin files

This commit is contained in:
Adrian Ulrich committed 2017-06-10 12:38:01 +02:00
1 parent 3481503633
commit 012b53e1ea
1 file changed
+1 -1
@@ -575,7 +575,7 @@ public class MediaScanner implements Handler.Callback {
return hasChanged;
}
private static final Pattern sIgnoredFilenames = Pattern.compile("^([^\\.]+|.+\\.(jpe?g|gif|png|bmp|webm|txt|pdf|avi|mp4|mkv|zip|tgz|xml))$", Pattern.CASE_INSENSITIVE);
private static final Pattern sIgnoredFilenames = Pattern.compile("^([^\\.]+|.+\\.(jpe?g|gif|png|bmp|webm|txt|pdf|avi|mp4|mkv|zip|tgz|xml|tmp|bin))$", Pattern.CASE_INSENSITIVE);
/**
* Returns true if the file should not be scanned
*