relax black and whitelisting.
/sdcard is Fat32 by default, so do an case-insensitive black- and whitelist matching. This helps if - for whatever reason - the mediadb and readdir() disagree on the case.
This commit is contained in:
1 parent
3e16199a3f
commit
0daa514406
1 file changed
+2
-2
@@ -613,14 +613,14 @@ public class MediaScanner implements Handler.Callback {
|
||||
|
||||
for (String path : MediaLibrary.getPreferences(mContext).mediaFolders) {
|
||||
if (path.length() > wlPoints &&
|
||||
file.getPath().startsWith(path)) {
|
||||
file.getPath().toLowerCase().startsWith(path.toLowerCase())) {
|
||||
wlPoints = path.length();
|
||||
}
|
||||
}
|
||||
|
||||
for (String path : MediaLibrary.getPreferences(mContext).blacklistedFolders) {
|
||||
if (path.length() > blPoints &&
|
||||
file.getPath().startsWith(path)) {
|
||||
file.getPath().toLowerCase().startsWith(path.toLowerCase())) {
|
||||
blPoints = path.length();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user