mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-02 07:23:36 +00:00
Limited number of search items for each category
This commit is contained in:
@@ -41,8 +41,8 @@ public class AlbumRepository {
|
||||
return listLiveSampleAlbum;
|
||||
}
|
||||
|
||||
public LiveData<List<Album>> searchListLiveAlbum(String name) {
|
||||
searchListLiveAlbum = albumDao.searchAlbum(name);
|
||||
public LiveData<List<Album>> searchListLiveAlbum(String name, int limit) {
|
||||
searchListLiveAlbum = albumDao.searchAlbum(name, limit);
|
||||
return searchListLiveAlbum;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ public class ArtistRepository {
|
||||
return listLiveSampleArtist;
|
||||
}
|
||||
|
||||
public LiveData<List<Artist>> searchListLiveArtist(String name) {
|
||||
searchListLiveArtist = artistDao.searchArtist(name);
|
||||
public LiveData<List<Artist>> searchListLiveArtist(String name, int limit) {
|
||||
searchListLiveArtist = artistDao.searchArtist(name, limit);
|
||||
return searchListLiveArtist;
|
||||
}
|
||||
|
||||
|
||||
@@ -114,8 +114,8 @@ public class GenreRepository {
|
||||
}
|
||||
}
|
||||
|
||||
public LiveData<List<Genre>> searchListLiveGenre(String name) {
|
||||
searchListLiveGenre = genreDao.searchGenre(name);
|
||||
public LiveData<List<Genre>> searchListLiveGenre(String name, int limit) {
|
||||
searchListLiveGenre = genreDao.searchGenre(name, limit);
|
||||
return searchListLiveGenre;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ public class SongRepository {
|
||||
songGenreCrossDao = database.songGenreCrossDao();
|
||||
}
|
||||
|
||||
public LiveData<List<Song>> searchListLiveSong(String title) {
|
||||
searchListLiveSongs = songDao.searchSong(title);
|
||||
public LiveData<List<Song>> searchListLiveSong(String title, int limit) {
|
||||
searchListLiveSongs = songDao.searchSong(title, limit);
|
||||
return searchListLiveSongs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user