1
0
Fork 1
mirror of https://codeberg.org/tom79/Fedilab.git synced 2025-04-05 06:30:01 +03:00

Fix a crash with threads and decorations

This commit is contained in:
Thomas 2025-03-13 10:36:45 +01:00
parent 4c23100021
commit 916fe40381

View file

@ -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(