Fix the FoldersFragment can't list a file when it's extension is uppercase.
This commit is contained in:
parent
a9da6b0eea
commit
e4e05e87ea
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ public final class FileUtil {
|
||||||
if (dotPos == -1) {
|
if (dotPos == -1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String fileExtension = filename.substring(dotPos + 1);
|
String fileExtension = filename.substring(dotPos + 1).toLowerCase();
|
||||||
String fileType = mimeTypeMap.getMimeTypeFromExtension(fileExtension);
|
String fileType = mimeTypeMap.getMimeTypeFromExtension(fileExtension);
|
||||||
if (fileType == null) {
|
if (fileType == null) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue