Skip to content

Commit

Permalink
* Fixes: Divider color between quick link items
Browse files Browse the repository at this point in the history
  • Loading branch information
AjeshRPai committed Oct 12, 2023
1 parent 7b3649d commit 85ac64b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ class QuickLinkRibbonViewHolder(
layoutManager = LinearLayoutManager(context, RecyclerView.VERTICAL, false)
adapter = QuickLinksItemAdapter()
}
this.addItemDecoration(
MaterialDividerItemDecoration(
this.context,
DividerItemDecoration.VERTICAL
).apply {
isLastItemDecorated = false
}
)
}
}

fun bind(quickLinksItem: QuickLinksItem) = with(binding) {
quickLinksItemList.addItemDecoration(
MaterialDividerItemDecoration(
quickLinksItemList.context,
DividerItemDecoration.VERTICAL
).apply {
isLastItemDecorated = false
}
)
(quickLinksItemList.adapter as QuickLinksItemAdapter).update(quickLinksItem.quickLinkItems)
if (quickLinksItem.showMoreFocusPoint) {
quickLinksItemList.smoothScrollToPosition(quickLinksItemList.adapter!!.itemCount - 1)
Expand Down

0 comments on commit 85ac64b

Please sign in to comment.