Hide Related titles if not found any
This commit is contained in:
parent
384059177e
commit
d3d0efdfcd
1 changed files with 28 additions and 28 deletions
|
|
@ -595,19 +595,19 @@ private fun MangaScreenSmallImpl(
|
||||||
// KMK -->
|
// KMK -->
|
||||||
if (state.source !is StubSource && relatedMangasEnabled) {
|
if (state.source !is StubSource && relatedMangasEnabled) {
|
||||||
if (expandRelatedMangas) {
|
if (expandRelatedMangas) {
|
||||||
item { HorizontalDivider() }
|
if (state.relatedMangasSorted?.isNotEmpty() != false) {
|
||||||
item(
|
item { HorizontalDivider() }
|
||||||
key = MangaScreenItem.RELATED_TITLES,
|
item(
|
||||||
contentType = MangaScreenItem.RELATED_TITLES,
|
key = MangaScreenItem.RELATED_TITLES,
|
||||||
) {
|
contentType = MangaScreenItem.RELATED_TITLES,
|
||||||
Column {
|
) {
|
||||||
RelatedMangaTitle(
|
Column {
|
||||||
title = stringResource(KMR.strings.pref_source_related_mangas),
|
RelatedMangaTitle(
|
||||||
subtitle = null,
|
title = stringResource(KMR.strings.pref_source_related_mangas),
|
||||||
onClick = onRelatedMangasScreenClick,
|
subtitle = null,
|
||||||
onLongClick = null,
|
onClick = onRelatedMangasScreenClick,
|
||||||
)
|
onLongClick = null,
|
||||||
if (state.relatedMangasSorted?.isNotEmpty() != false) {
|
)
|
||||||
RelatedMangas(
|
RelatedMangas(
|
||||||
relatedMangas = state.relatedMangasSorted,
|
relatedMangas = state.relatedMangasSorted,
|
||||||
getMangaState = getMangaState,
|
getMangaState = getMangaState,
|
||||||
|
|
@ -616,8 +616,8 @@ private fun MangaScreenSmallImpl(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
item { HorizontalDivider() }
|
||||||
}
|
}
|
||||||
item { HorizontalDivider() }
|
|
||||||
} else {
|
} else {
|
||||||
item(
|
item(
|
||||||
key = MangaScreenItem.RELATED_TITLES,
|
key = MangaScreenItem.RELATED_TITLES,
|
||||||
|
|
@ -983,19 +983,19 @@ private fun MangaScreenLargeImpl(
|
||||||
// KMK -->
|
// KMK -->
|
||||||
if (state.source !is StubSource && relatedMangasEnabled) {
|
if (state.source !is StubSource && relatedMangasEnabled) {
|
||||||
if (expandRelatedMangas) {
|
if (expandRelatedMangas) {
|
||||||
item { HorizontalDivider() }
|
if (state.relatedMangasSorted?.isNotEmpty() != false) {
|
||||||
item(
|
item { HorizontalDivider() }
|
||||||
key = MangaScreenItem.RELATED_TITLES,
|
item(
|
||||||
contentType = MangaScreenItem.RELATED_TITLES,
|
key = MangaScreenItem.RELATED_TITLES,
|
||||||
) {
|
contentType = MangaScreenItem.RELATED_TITLES,
|
||||||
Column {
|
) {
|
||||||
RelatedMangaTitle(
|
Column {
|
||||||
title = stringResource(KMR.strings.pref_source_related_mangas),
|
RelatedMangaTitle(
|
||||||
subtitle = null,
|
title = stringResource(KMR.strings.pref_source_related_mangas),
|
||||||
onClick = onRelatedMangasScreenClick,
|
subtitle = null,
|
||||||
onLongClick = null,
|
onClick = onRelatedMangasScreenClick,
|
||||||
)
|
onLongClick = null,
|
||||||
if (state.relatedMangasSorted?.isNotEmpty() != false) {
|
)
|
||||||
RelatedMangas(
|
RelatedMangas(
|
||||||
relatedMangas = state.relatedMangasSorted,
|
relatedMangas = state.relatedMangasSorted,
|
||||||
getMangaState = getMangaState,
|
getMangaState = getMangaState,
|
||||||
|
|
@ -1004,8 +1004,8 @@ private fun MangaScreenLargeImpl(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
item { HorizontalDivider() }
|
||||||
}
|
}
|
||||||
item { HorizontalDivider() }
|
|
||||||
} else {
|
} else {
|
||||||
item(
|
item(
|
||||||
key = MangaScreenItem.RELATED_TITLES,
|
key = MangaScreenItem.RELATED_TITLES,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue