implement sort by album -> track

This commit is contained in:
Adrian Ulrich 2014-10-16 13:38:53 +02:00
parent cce3d04a5e
commit 9778de2bec
2 changed files with 3 additions and 2 deletions

View File

@ -121,6 +121,7 @@ THE SOFTWARE.
<string name="artist_album_track">Artist, album, track number</string>
<string name="artist_album_title">Artist, album, title</string>
<string name="artist_year">Artist, year</string>
<string name="album_track">Album, track number</string>
<string name="song_playcount">Playcount</string>
<string name="ascending">Ascending</string>

View File

@ -186,9 +186,9 @@ public class MediaAdapter
mFields = new String[] { MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.ALBUM, MediaStore.Audio.Media.TITLE };
mFieldKeys = new String[] { MediaStore.Audio.Media.ARTIST_KEY, MediaStore.Audio.Media.ALBUM_KEY, MediaStore.Audio.Media.TITLE_KEY };
mSortEntries = new int[] { R.string.name, R.string.artist_album_track, R.string.artist_album_title,
R.string.artist_year, R.string.year, R.string.date_added, R.string.song_playcount };
R.string.artist_year, R.string.album_track, R.string.year, R.string.date_added, R.string.song_playcount };
mSortValues = new String[] { "title_key %1$s", "artist_key %1$s,album_key %1$s,track %1$s", "artist_key %1$s,album_key %1$s,title_key %1$s",
"artist_key %1$s,year %1$s,track %1$s", "year %1$s,title_key %1$s", "_id %1$s", SORT_MAGIC_PLAYCOUNT };
"artist_key %1$s,year %1$s,track %1$s", "album_key %1$s,track %1s", "year %1$s,title_key %1$s", "_id %1$s", SORT_MAGIC_PLAYCOUNT };
break;
case MediaUtils.TYPE_PLAYLIST:
mStore = MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI;