From 7fa88fc57e15b3848d00f7103c6ad1b67f7ca092 Mon Sep 17 00:00:00 2001 From: odifek Date: Mon, 1 Aug 2022 00:16:36 +0200 Subject: [PATCH] #16: fix broken playlist songs display --- .../techbeloved/hymnbook/playlists/PlaylistsFragment.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/techbeloved/hymnbook/playlists/PlaylistsFragment.kt b/app/src/main/java/com/techbeloved/hymnbook/playlists/PlaylistsFragment.kt index aeaccbc..b34814f 100644 --- a/app/src/main/java/com/techbeloved/hymnbook/playlists/PlaylistsFragment.kt +++ b/app/src/main/java/com/techbeloved/hymnbook/playlists/PlaylistsFragment.kt @@ -20,6 +20,7 @@ import com.techbeloved.hymnbook.R import com.techbeloved.hymnbook.databinding.FragmentPlaylistsBinding import com.techbeloved.hymnbook.hymnlisting.HymnItemModel import com.techbeloved.hymnbook.usecases.Lce +import com.techbeloved.hymnbook.utils.CATEGORY_PLAYLISTS import com.techbeloved.hymnbook.utils.safeNavigate import dagger.hilt.android.AndroidEntryPoint import timber.log.Timber @@ -34,7 +35,11 @@ class PlaylistsFragment : Fragment() { override fun onItemClick(view: View, item: HymnItemModel) { findNavController().safeNavigate( PlaylistsFragmentDirections - .actionPlaylistsFragmentToHymnListingFragment(categoryId = item.id) + .actionPlaylistsFragmentToHymnListingFragment( + categoryId = item.id, + category = CATEGORY_PLAYLISTS, + title = item.title + ) ) }