Expand ringtone titles to support OGG and FLAC.
These file types don't have "audio/" MIME type, so check for those MIME types explicitly. Bug: 22803550 Change-Id: Ia62f94ad4a19409d6a50462935de005bc572f93a
This commit is contained in:
@@ -52,7 +52,8 @@ public class Ringtone {
|
||||
MediaStore.Audio.Media.TITLE
|
||||
};
|
||||
/** Selection that limits query results to just audio files */
|
||||
private static final String MEDIA_SELECTION = MediaColumns.MIME_TYPE + " LIKE 'audio/%'";
|
||||
private static final String MEDIA_SELECTION = MediaColumns.MIME_TYPE + " LIKE 'audio/%' OR "
|
||||
+ MediaColumns.MIME_TYPE + " IN ('application/ogg', 'application/x-flac')";
|
||||
|
||||
// keep references on active Ringtones until stopped or completion listener called.
|
||||
private static final ArrayList<Ringtone> sActiveRingtones = new ArrayList<Ringtone>();
|
||||
|
||||
Reference in New Issue
Block a user