Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d286f49 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MediaFile: Fix case sensitive file extension matching for computing MTP format code



Bug: 6939136

Change-Id: Iefd4083aefbd4b175a2f8c860a9e13c99ded9c82
Signed-off-by: default avatarMike Lockwood <lockwood@google.com>
parent d932de9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -325,7 +325,7 @@ public class MediaFile {
        }
        int lastDot = fileName.lastIndexOf('.');
        if (lastDot > 0) {
            String extension = fileName.substring(lastDot + 1);
            String extension = fileName.substring(lastDot + 1).toUpperCase();
            Integer value = sFileTypeToFormatMap.get(extension);
            if (value != null) {
                return value.intValue();