[Android] Query by artist returns albums in ascending a to z order and tracks ascending by album. Query by album returns tracks in ascending order.

Robert Stone git at videolan.org
Tue May 18 07:28:34 UTC 2021


vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Sun May 16 21:56:41 2021 -0700| [9bccc491d844d1231b41c24f5a91a92e9f7d1a8d] | committer: Robert Stone

Query by artist returns albums in ascending a to z order and tracks ascending by album. Query by album returns tracks in ascending order.

> https://code.videolan.org/videolan/vlc-android/commit/9bccc491d844d1231b41c24f5a91a92e9f7d1a8d
---

 .../src/org/videolan/medialibrary/interfaces/media/Album.java         | 2 +-
 .../src/org/videolan/medialibrary/interfaces/media/Artist.java        | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/medialibrary/src/org/videolan/medialibrary/interfaces/media/Album.java b/medialibrary/src/org/videolan/medialibrary/interfaces/media/Album.java
index 280c4291f..cb632d1de 100644
--- a/medialibrary/src/org/videolan/medialibrary/interfaces/media/Album.java
+++ b/medialibrary/src/org/videolan/medialibrary/interfaces/media/Album.java
@@ -88,7 +88,7 @@ public abstract class Album extends MediaLibraryItem {
 
     @Override
     public MediaWrapper[] getTracks() {
-        return getTracks(Medialibrary.SORT_ALBUM, false);
+        return getTracks(Medialibrary.SORT_DEFAULT, false);
     }
 
     @Override
diff --git a/medialibrary/src/org/videolan/medialibrary/interfaces/media/Artist.java b/medialibrary/src/org/videolan/medialibrary/interfaces/media/Artist.java
index 664baaa94..898428df3 100644
--- a/medialibrary/src/org/videolan/medialibrary/interfaces/media/Artist.java
+++ b/medialibrary/src/org/videolan/medialibrary/interfaces/media/Artist.java
@@ -65,12 +65,12 @@ abstract public class Artist extends MediaLibraryItem {
     }
 
     public Album[] getAlbums() {
-        return getAlbums(Medialibrary.SORT_DEFAULT, false);
+        return getAlbums(Medialibrary.SORT_ALPHA, false);
     }
 
     @Override
     public MediaWrapper[] getTracks() {
-        return getTracks(Medialibrary.SORT_ALBUM, true);
+        return getTracks(Medialibrary.SORT_ALBUM, false);
     }
 
     @Override



More information about the Android mailing list