Changed song page list title and toolbar title

This commit is contained in:
CappielloAntonio 2021-09-14 15:09:43 +02:00
parent 973e1768af
commit e9781f6770
4 changed files with 16 additions and 15 deletions

View file

@ -27,6 +27,7 @@ public class SongListPageViewModel extends AndroidViewModel {
private final DownloadRepository downloadRepository;
public String title;
public String toolbarTitle;
public Genre genre;
public Artist artist;
public Album album;
@ -50,15 +51,6 @@ public class SongListPageViewModel extends AndroidViewModel {
songList = new MutableLiveData<>(new ArrayList<>());
switch (title) {
case Song.RECENTLY_PLAYED:
// songList = songRepository.getListLiveRecentlyPlayedSampleSong(100);
break;
case Song.MOST_PLAYED:
// songList = songRepository.getListLiveMostPlayedSampleSong(100);
break;
case Song.RECENTLY_ADDED:
// songList = songRepository.getListLiveRecentlyAddedSampleSong(100);
break;
case Song.BY_GENRE:
songList = songRepository.getSongsByGenre(genre.getId());
break;