diff options
author | Mike Lockwood <lockwood@google.com> | 2012-08-07 14:43:59 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2012-08-07 14:43:59 -0700 |
commit | 2d286f4984d478cc5947a3a3ceea85b292d5f920 (patch) | |
tree | 66c9a364e68e97544f99a8e28cda8a709956f218 /media/java | |
parent | d932de9aff49d1d9f752ad479b42854d2557c881 (diff) | |
download | frameworks_base-2d286f4984d478cc5947a3a3ceea85b292d5f920.zip frameworks_base-2d286f4984d478cc5947a3a3ceea85b292d5f920.tar.gz frameworks_base-2d286f4984d478cc5947a3a3ceea85b292d5f920.tar.bz2 |
MediaFile: Fix case sensitive file extension matching for computing MTP format code
Bug: 6939136
Change-Id: Iefd4083aefbd4b175a2f8c860a9e13c99ded9c82
Signed-off-by: Mike Lockwood <lockwood@google.com>
Diffstat (limited to 'media/java')
-rw-r--r-- | media/java/android/media/MediaFile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/MediaFile.java b/media/java/android/media/MediaFile.java index d21ada4..06d43a2 100644 --- a/media/java/android/media/MediaFile.java +++ b/media/java/android/media/MediaFile.java @@ -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(); |