Commit 14bb42d2 authored by Adrien Maglo's avatar Adrien Maglo
Browse files

Media: fix uppercase media extension detection

parent 64bd27e6
......@@ -169,7 +169,7 @@ public class Media implements Comparable<Media> {
if (mType == TYPE_ALL) {
int dotIndex = mLocation.lastIndexOf(".");
if (dotIndex != -1) {
String fileExt = mLocation.substring(dotIndex);
String fileExt = mLocation.substring(dotIndex).toLowerCase(Locale.ENGLISH);
if( Media.VIDEO_EXTENSIONS.contains(fileExt) ) {
mType = TYPE_VIDEO;
} else if (Media.AUDIO_EXTENSIONS.contains(fileExt)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment