Won't show Related title row if nothing found
This commit is contained in:
parent
8dff9ea669
commit
6c844e9ecb
1 changed files with 8 additions and 6 deletions
|
|
@ -589,12 +589,14 @@ private fun MangaScreenSmallImpl(
|
|||
onClick = onRelatedMangasScreenClick,
|
||||
onLongClick = null,
|
||||
)
|
||||
RelatedMangas(
|
||||
relatedMangas = state.relatedMangasSorted,
|
||||
getMangaState = getMangaState,
|
||||
onMangaClick = onRelatedMangaClick,
|
||||
onMangaLongClick = onRelatedMangaLongClick
|
||||
)
|
||||
if (state.relatedMangasSorted == null || state.relatedMangasSorted.isNotEmpty()) {
|
||||
RelatedMangas(
|
||||
relatedMangas = state.relatedMangasSorted,
|
||||
getMangaState = getMangaState,
|
||||
onMangaClick = onRelatedMangaClick,
|
||||
onMangaLongClick = onRelatedMangaLongClick,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue