COMPOSER and ALBART id's are > SONG

These types can not have a Play All in the context menu as the 'jumpSong' in SongTimeline only works if the required information is available in the filled projection (which is not the case for these types)
This commit is contained in:
Adrian Ulrich 2017-03-04 20:01:27 +01:00
parent 010aa84185
commit d0ff23a824
2 changed files with 14 additions and 15 deletions

View File

@ -68,9 +68,8 @@ public class LibraryPagerAdapter
* The human-readable title for each list. The positions correspond to the
* MediaUtils ids, so e.g. TITLES[MediaUtils.TYPE_SONG] = R.string.songs
*/
public static final int[] TITLES = { R.string.artists, R.string.albumartists, R.string.composers,
R.string.albums, R.string.songs, R.string.playlists,
R.string.genres, R.string.files };
public static final int[] TITLES = { R.string.artists, R.string.albums, R.string.songs, R.string.playlists,
R.string.genres, R.string.albumartists, R.string.composers, R.string.files };
/**
* Default tab order.
*/

View File

@ -62,30 +62,30 @@ public class MediaUtils {
* Type indicating an id represents an artist.
*/
public static final int TYPE_ARTIST = 0;
/**
* Type indicating an id represents an albumartist
*/
public static final int TYPE_ALBARTIST = 1;
/**
* Type indicating an id represents a composer
*/
public static final int TYPE_COMPOSER = 2;
/**
* Type indicating an id represents an album.
*/
public static final int TYPE_ALBUM = 3;
public static final int TYPE_ALBUM = 1;
/**
* Type indicating an id represents a song.
*/
public static final int TYPE_SONG = 4;
public static final int TYPE_SONG = 2;
/**
* Type indicating an id represents a playlist.
*/
public static final int TYPE_PLAYLIST = 5;
public static final int TYPE_PLAYLIST = 3;
/**
* Type indicating ids represent genres.
*/
public static final int TYPE_GENRE = 6;
public static final int TYPE_GENRE = 4;
/**
* Type indicating an id represents an albumartist
*/
public static final int TYPE_ALBARTIST = 5;
/**
* Type indicating an id represents a composer
*/
public static final int TYPE_COMPOSER = 6;
/**
* Special type for files and folders. Most methods do not accept this type
* since files have no MediaStore id and require special handling.