Commit 923adeec authored by Eliézer de Oliveira's avatar Eliézer de Oliveira

adding correct conditional formatting

parent 5cf8ed23
......@@ -54,10 +54,7 @@ class DividerItemDecoration() : RecyclerView.ItemDecoration() {
for (i in 0 until childCount) {
val child = parent.getChildAt(i)
if (isLastView(child, parent))
continue
if (isViewTypeHeader(child, parent))
if (isLastView(child, parent) || isViewTypeHeader(child, parent))
continue
val params = child.layoutParams as RecyclerView.LayoutParams
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment