Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
brahmkshatriya committed Feb 11, 2024
1 parent ce85f89 commit e4a99fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit e4a99fd

Please sign in to comment.