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

Commit 00a58822 authored by Sailendra Doddi's avatar Sailendra Doddi Committed by sailendrabathi
Browse files
BUG=162536543
Test: N/A
Change-Id: I6e69dfcdf75102c39344a2d41c9957b9ba25be7f
parent 25e123a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -895,7 +895,7 @@ public class RingtoneManager {
            throw new IOException("External storage is not mounted. Unable to install ringtones.");
        }

        // Sanity-check: are we actually being asked to install an audio file?
        // Consistency-check: are we actually being asked to install an audio file?
        final String mimeType = mContext.getContentResolver().getType(fileUri);
        if(mimeType == null ||
                !(mimeType.startsWith("audio/") || mimeType.equals("application/ogg"))) {