Fix a bunch of lint warning
This commit is contained in:
@@ -18,14 +18,11 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ArtistPageViewModel extends AndroidViewModel {
|
||||
private SongRepository songRepository;
|
||||
private AlbumRepository albumRepository;
|
||||
private ArtistRepository artistRepository;
|
||||
|
||||
private List<Song> randomList = new ArrayList<>();
|
||||
private LiveData<List<Song>> songList = new MutableLiveData<>();
|
||||
private LiveData<List<Album>> albumList = new MutableLiveData<>();
|
||||
private LiveData<List<Artist>> artistList = new MutableLiveData<>();
|
||||
private LiveData<Artist> artistInfo = new MutableLiveData<>();
|
||||
|
||||
private Artist artist;
|
||||
@@ -33,7 +30,6 @@ public class ArtistPageViewModel extends AndroidViewModel {
|
||||
public ArtistPageViewModel(@NonNull Application application) {
|
||||
super(application);
|
||||
|
||||
songRepository = new SongRepository(application);
|
||||
albumRepository = new AlbumRepository(application);
|
||||
artistRepository = new ArtistRepository(application);
|
||||
}
|
||||
@@ -48,11 +44,6 @@ public class ArtistPageViewModel extends AndroidViewModel {
|
||||
return artistInfo;
|
||||
}
|
||||
|
||||
public List<Song> getArtistRandomSongList() {
|
||||
// randomList = songRepository.getArtistListLiveRandomSong(artist.id);
|
||||
return randomList;
|
||||
}
|
||||
|
||||
public LiveData<List<Song>> getArtistTopSongList(int count) {
|
||||
songList = artistRepository.getTopSongs(artist.getName(), count);
|
||||
return songList;
|
||||
|
||||
Reference in New Issue
Block a user