mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 07:03:35 +00:00
Changed song page list title and toolbar title
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user