Fix episode items in ViewItemList
This commit is contained in:
parent
fc902938db
commit
cb095834f1
1 changed files with 16 additions and 6 deletions
|
@ -96,6 +96,15 @@ class HomeFragment : Fragment() {
|
|||
}
|
||||
|
||||
private fun navigateToMediaInfoFragment(item: BaseItemDto) {
|
||||
if (item.type == "Episode") {
|
||||
findNavController().navigate(
|
||||
HomeFragmentDirections.actionNavigationHomeToMediaInfoFragment(
|
||||
item.seriesId!!,
|
||||
item.seriesName,
|
||||
"Series"
|
||||
)
|
||||
)
|
||||
} else {
|
||||
findNavController().navigate(
|
||||
HomeFragmentDirections.actionNavigationHomeToMediaInfoFragment(
|
||||
item.id,
|
||||
|
@ -104,6 +113,7 @@ class HomeFragment : Fragment() {
|
|||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private fun navigateToEpisodeBottomSheetFragment(episode: BaseItemDto) {
|
||||
findNavController().navigate(
|
||||
|
|
Loading…
Reference in a new issue