Update filter header UI

master
Koitharu 10 months ago
parent c2688517ba
commit fe59a13218
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -27,7 +27,7 @@ class FilterHeaderProducer @Inject constructor(
capabilities = filterCoordinator.capabilities, capabilities = filterCoordinator.capabilities,
tagsProperty = tags, tagsProperty = tags,
snapshot = snapshot.listFilter, snapshot = snapshot.listFilter,
limit = 8, limit = 12,
) )
FilterHeaderModel( FilterHeaderModel(
chips = chipList, chips = chipList,
@ -147,13 +147,13 @@ class FilterHeaderProducer @Inject constructor(
} }
val hasTags = result.any { it.data is MangaTag } val hasTags = result.any { it.data is MangaTag }
if (hasTags) { if (hasTags) {
result.addLast(moreTagsChip()) result.addFirst(moreTagsChip())
} }
return result return result
} }
private fun moreTagsChip() = ChipsView.ChipModel( private fun moreTagsChip() = ChipsView.ChipModel(
titleResId = R.string.more, titleResId = R.string.genres,
isDropdown = true, icon = R.drawable.ic_drawer_menu_open,
) )
} }

Loading…
Cancel
Save