Translate message details projection to correct coordinate system.

This commit is contained in:
Alex Hart
2021-09-30 13:00:06 -03:00
committed by GitHub
parent eb6ef3d005
commit 9bcb1bad8e
3 changed files with 13 additions and 29 deletions

View File

@@ -95,9 +95,12 @@ class RecyclerViewColorizer(private val recyclerView: RecyclerView) {
for (i in 0 until parent.childCount) {
val child = parent.getChildAt(i)
if (child != null && child is Colorizable) {
child.colorizerProjections.forEach {
c.drawPath(it.path, holePunchPaint)
if (child != null) {
val holder = parent.getChildViewHolder(child)
if (holder is Colorizable) {
holder.colorizerProjections.forEach {
c.drawPath(it.path, holePunchPaint)
}
}
}
}