Commit 916fe403 authored by Thomas's avatar Thomas
Browse files

Fix a crash with threads and decorations

parent 4c231000
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -107,12 +107,7 @@ public class DividerDecoration extends RecyclerView.ItemDecoration {
                            startPx = c.getWidth() - startPx;

                        float bottomPx = view.getBottom();
                        int color;
                        if (j >= colorList.size()) {
                            color = colorList.get(j - colorList.size());
                        } else {
                            color = colorList.get(j);
                        }
                        int color = colorList.get(j%(colorList.size()-1));
                        paint.setColor(ResourcesCompat.getColor(_mContext.getResources(), color, _mContext.getTheme()));
                        if (j == indentationMax - 1) {
                            paint.setPathEffect(new DashPathEffect(