mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-02 07:23:36 +00:00
Changed the sort order of the songs in the playlist and added a download button
This commit is contained in:
@@ -17,7 +17,7 @@ public class PlaylistPageViewModel extends AndroidViewModel {
|
||||
|
||||
private SongRepository songRepository;
|
||||
|
||||
private LiveData<List<Song>> songList;
|
||||
private LiveData<List<Song>> songLiveList;
|
||||
|
||||
private Playlist playlist;
|
||||
|
||||
@@ -27,9 +27,13 @@ public class PlaylistPageViewModel extends AndroidViewModel {
|
||||
songRepository = new SongRepository(application);
|
||||
}
|
||||
|
||||
public LiveData<List<Song>> getPlaylistSongList() {
|
||||
songList = songRepository.getPlaylistLiveSong(playlist.getId());
|
||||
return songList;
|
||||
public LiveData<List<Song>> getPlaylistSongLiveList() {
|
||||
songLiveList = songRepository.getPlaylistLiveSong(playlist.getId());
|
||||
return songLiveList;
|
||||
}
|
||||
|
||||
public List<Song> getPlaylistSongList() {
|
||||
return songRepository.getPlaylistSong(playlist.getId());
|
||||
}
|
||||
|
||||
public Playlist getPlaylist() {
|
||||
|
||||
Reference in New Issue
Block a user