sort file queries by path (aka: _data)
This commit is contained in:
parent
375a304573
commit
95cd3b3329
@ -98,6 +98,11 @@ public class MediaUtils {
|
|||||||
*/
|
*/
|
||||||
public static final String ALBUM_SORT = "album_key,track";
|
public static final String ALBUM_SORT = "album_key,track";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default sort order for files. Simply use the path
|
||||||
|
*/
|
||||||
|
public static final String FILE_SORT = "_data";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cached random instance.
|
* Cached random instance.
|
||||||
*/
|
*/
|
||||||
@ -668,7 +673,7 @@ public class MediaUtils {
|
|||||||
String[] qargs = { path };
|
String[] qargs = { path };
|
||||||
|
|
||||||
Uri media = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
|
Uri media = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
|
||||||
QueryTask result = new QueryTask(media, projection, query, qargs, DEFAULT_SORT);
|
QueryTask result = new QueryTask(media, projection, query, qargs, FILE_SORT);
|
||||||
result.type = TYPE_FILE;
|
result.type = TYPE_FILE;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user