Unverified Commit caf47221 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito Committed by GitHub

Update DividerItemDecoration.kt

parent f1d4537e
......@@ -57,7 +57,7 @@ class DividerItemDecoration() : RecyclerView.ItemDecoration() {
val params = child.layoutParams as RecyclerView.LayoutParams
val bottom = child.bottom + params.bottomMargin
val top = bottom - divider.intrinsicHeight
val top = bottom - (divider?.intrinsicHeight ?: 0)
divider?.setBounds(left, top, right, bottom)
divider?.draw(c)
......
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