diff --git a/app/src/main/java/dev/brahmkshatriya/echo/data/models/MediaItem.kt b/app/src/main/java/dev/brahmkshatriya/echo/data/models/MediaItem.kt index 6360f00a..a73252c6 100644 --- a/app/src/main/java/dev/brahmkshatriya/echo/data/models/MediaItem.kt +++ b/app/src/main/java/dev/brahmkshatriya/echo/data/models/MediaItem.kt @@ -7,7 +7,7 @@ sealed class MediaItem { data class PlaylistItem(val playlist: Playlist.WithCover) : MediaItem() companion object { - fun Track.toMediaItem() = TrackItem(this).also { println(it.track.title) } + fun Track.toMediaItem() = TrackItem(this) fun Album.WithCover.toMediaItem() = AlbumItem(this) fun Artist.WithCover.toMediaItem() = ArtistItem(this) fun Playlist.WithCover.toMediaItem() = PlaylistItem(this) diff --git a/app/src/main/java/dev/brahmkshatriya/echo/ui/home/HomeViewModel.kt b/app/src/main/java/dev/brahmkshatriya/echo/ui/home/HomeViewModel.kt index 2a2745e3..ebd7792b 100644 --- a/app/src/main/java/dev/brahmkshatriya/echo/ui/home/HomeViewModel.kt +++ b/app/src/main/java/dev/brahmkshatriya/echo/ui/home/HomeViewModel.kt @@ -32,9 +32,7 @@ class HomeViewModel @Inject constructor( fun loadFeed() { viewModelScope.launch(Dispatchers.IO) { - println("Loading Data") homeClient.getHomeFeed(genre).cachedIn(viewModelScope).collectLatest { - println("Data Received") _feed.value = it } }