mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Fixed bottom sheets functionality
This commit is contained in:
parent
320e3b8678
commit
2e1c21e73c
15 changed files with 348 additions and 222 deletions
|
|
@ -7,11 +7,11 @@ import com.cappielloantonio.play.model.Playlist;
|
|||
import com.cappielloantonio.play.model.Queue;
|
||||
import com.cappielloantonio.play.model.Song;
|
||||
import com.cappielloantonio.play.subsonic.models.AlbumID3;
|
||||
import com.cappielloantonio.play.subsonic.models.AlbumWithSongsID3;
|
||||
import com.cappielloantonio.play.subsonic.models.ArtistID3;
|
||||
import com.cappielloantonio.play.subsonic.models.ArtistInfo2;
|
||||
import com.cappielloantonio.play.subsonic.models.ArtistWithAlbumsID3;
|
||||
import com.cappielloantonio.play.subsonic.models.Child;
|
||||
import com.cappielloantonio.play.subsonic.models.Playlists;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -20,7 +20,7 @@ public class MappingUtil {
|
|||
public static ArrayList<Song> mapSong(List<Child> children) {
|
||||
ArrayList<Song> songs = new ArrayList();
|
||||
|
||||
for(Child child : children){
|
||||
for (Child child : children) {
|
||||
songs.add(new Song(child));
|
||||
}
|
||||
|
||||
|
|
@ -30,17 +30,21 @@ public class MappingUtil {
|
|||
public static ArrayList<Album> mapAlbum(List<AlbumID3> albumID3List) {
|
||||
ArrayList<Album> albums = new ArrayList();
|
||||
|
||||
for(AlbumID3 albumID3 : albumID3List){
|
||||
for (AlbumID3 albumID3 : albumID3List) {
|
||||
albums.add(new Album(albumID3));
|
||||
}
|
||||
|
||||
return albums;
|
||||
}
|
||||
|
||||
public static Album mapAlbum(AlbumWithSongsID3 albumWithSongsID3) {
|
||||
return new Album(albumWithSongsID3);
|
||||
}
|
||||
|
||||
public static ArrayList<Artist> mapArtist(List<ArtistID3> artistID3List) {
|
||||
ArrayList<Artist> artists = new ArrayList();
|
||||
|
||||
for(ArtistID3 artistID3 : artistID3List){
|
||||
for (ArtistID3 artistID3 : artistID3List) {
|
||||
artists.add(new Artist(artistID3));
|
||||
}
|
||||
|
||||
|
|
@ -51,6 +55,10 @@ public class MappingUtil {
|
|||
return new Artist(artistInfo2);
|
||||
}
|
||||
|
||||
public static Artist mapArtist(ArtistWithAlbumsID3 artistWithAlbumsID3) {
|
||||
return new Artist(artistWithAlbumsID3);
|
||||
}
|
||||
|
||||
public static Artist mapArtistWithAlbum(ArtistWithAlbumsID3 artistWithAlbumsID3) {
|
||||
return new Artist(artistWithAlbumsID3);
|
||||
}
|
||||
|
|
@ -58,7 +66,7 @@ public class MappingUtil {
|
|||
public static ArrayList<Song> mapQueue(List<Queue> queueList) {
|
||||
ArrayList<Song> songs = new ArrayList();
|
||||
|
||||
for(Queue item : queueList){
|
||||
for (Queue item : queueList) {
|
||||
songs.add(new Song(item));
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +76,7 @@ public class MappingUtil {
|
|||
public static ArrayList<Playlist> mapPlaylist(List<com.cappielloantonio.play.subsonic.models.Playlist> playlists) {
|
||||
ArrayList<Playlist> playlist = new ArrayList();
|
||||
|
||||
for(com.cappielloantonio.play.subsonic.models.Playlist item : playlists){
|
||||
for (com.cappielloantonio.play.subsonic.models.Playlist item : playlists) {
|
||||
playlist.add(new Playlist(item));
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +86,7 @@ public class MappingUtil {
|
|||
public static ArrayList<Song> mapDownload(List<Download> downloads) {
|
||||
ArrayList<Song> songs = new ArrayList();
|
||||
|
||||
for(Download download : downloads){
|
||||
for (Download download : downloads) {
|
||||
songs.add(new Song(download));
|
||||
}
|
||||
|
||||
|
|
@ -88,7 +96,7 @@ public class MappingUtil {
|
|||
public static ArrayList<Download> mapToDownload(List<Song> songs) {
|
||||
ArrayList<Download> downloads = new ArrayList();
|
||||
|
||||
for(Song song : songs){
|
||||
for (Song song : songs) {
|
||||
downloads.add(new Download(song));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue