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

Skip to content
Commit 6a79d348 authored by Hyoungho Choi's avatar Hyoungho Choi Committed by Sahana Rao
Browse files

Add 'audio/mp3' to android.mime.types

MimeTypeMap.getSingleton().getExtensionFromMimeType() returns null since
MimeTypeMap doesn't have 'audio/mp3'. It makes
FileUtils#buildUniqueFile() returns a wrong file. For example, when
mimetype is 'audio/mp3' and filename is test.mp3 which already exists,
it returns test.mp3 (1).

Bug: 205774136
Test: atest FrameworksCoreTests:android.os.FileUtilsTest
Test: atest CtsMimeMapTestCases
Change-Id: I201a7955c735fe99813b5a99692525ace7b0f5fe
parent 5b2abf1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment