mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Removed unused database references
This commit is contained in:
parent
ca1831d23c
commit
ce79bda976
46 changed files with 182 additions and 1975 deletions
|
|
@ -5,6 +5,7 @@ import android.app.Application;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.lifecycle.AndroidViewModel;
|
||||
import androidx.lifecycle.LiveData;
|
||||
import androidx.lifecycle.MutableLiveData;
|
||||
|
||||
import com.cappielloantonio.play.interfaces.MediaCallback;
|
||||
import com.cappielloantonio.play.model.Album;
|
||||
|
|
@ -43,9 +44,12 @@ public class HomeViewModel extends AndroidViewModel {
|
|||
albumRepository = new AlbumRepository(application);
|
||||
artistRepository = new ArtistRepository(application);
|
||||
|
||||
favoritesSongSample = songRepository.getListLiveFavoritesSampleSong(20);
|
||||
downloadedSongSample = songRepository.getListLiveDownloadedSampleSong(20);
|
||||
years = songRepository.getYearList();
|
||||
// favoritesSongSample = songRepository.getListLiveFavoritesSampleSong(20);
|
||||
// downloadedSongSample = songRepository.getListLiveDownloadedSampleSong(20);
|
||||
// years = songRepository.getYearList();
|
||||
|
||||
downloadedSongSample = new MutableLiveData<>();
|
||||
years = new ArrayList<>();
|
||||
|
||||
mostPlayedAlbumSample = albumRepository.getListLiveAlbums("frequent", 20);
|
||||
recentlyAddedAlbumSample = albumRepository.getListLiveAlbums("newest", 20);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue