mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Changed song page list title and toolbar title
This commit is contained in:
parent
973e1768af
commit
e9781f6770
4 changed files with 16 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue