Commit 2a9efd1f authored by Sébastien Toque's avatar Sébastien Toque
Browse files

Sort audio medias by path name

parent d610fe74
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
......@@ -82,6 +84,12 @@ public class AudioBrowserActivity extends Activity {
private void updateLists() {
List<Media> audioList = MediaLibrary.getInstance(this).getAudioItems();
Collections.sort(audioList, new Comparator<Media>() {
public int compare(Media m1, Media m2) {
return, m2.getFile().getPath());
for (int i = 0; i < audioList.size(); i++) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment