Update filter header UI
This commit is contained in:
@@ -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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user