mirror of
https://github.com/androidx/media.git
synced 2025-05-12 01:59:50 +08:00
Fix lint errors
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140488486
This commit is contained in:
parent
bfc2faa269
commit
91c58627be
@ -368,13 +368,13 @@ public final class Id3Decoder implements MetadataDecoder {
|
||||
int mimeTypeEndIndex;
|
||||
if (majorVersion == 2) {
|
||||
mimeTypeEndIndex = 2;
|
||||
mimeType = "image/" + new String(data, 0, 3, "ISO-8859-1").toLowerCase();
|
||||
mimeType = "image/" + Util.toLowerInvariant(new String(data, 0, 3, "ISO-8859-1"));
|
||||
if (mimeType.equals("image/jpg")) {
|
||||
mimeType = "image/jpeg";
|
||||
}
|
||||
} else {
|
||||
mimeTypeEndIndex = indexOfZeroByte(data, 0);
|
||||
mimeType = new String(data, 0, mimeTypeEndIndex, "ISO-8859-1").toLowerCase();
|
||||
mimeType = Util.toLowerInvariant(new String(data, 0, mimeTypeEndIndex, "ISO-8859-1"));
|
||||
if (mimeType.indexOf('/') == -1) {
|
||||
mimeType = "image/" + mimeType;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user