mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-07-08 21:00:29 +03:00
Fix a crash with threads and decorations
This commit is contained in:
parent
4c23100021
commit
916fe40381
1 changed files with 1 additions and 6 deletions
|
@ -107,12 +107,7 @@ public class DividerDecoration extends RecyclerView.ItemDecoration {
|
||||||
startPx = c.getWidth() - startPx;
|
startPx = c.getWidth() - startPx;
|
||||||
|
|
||||||
float bottomPx = view.getBottom();
|
float bottomPx = view.getBottom();
|
||||||
int color;
|
int color = colorList.get(j%(colorList.size()-1));
|
||||||
if (j >= colorList.size()) {
|
|
||||||
color = colorList.get(j - colorList.size());
|
|
||||||
} else {
|
|
||||||
color = colorList.get(j);
|
|
||||||
}
|
|
||||||
paint.setColor(ResourcesCompat.getColor(_mContext.getResources(), color, _mContext.getTheme()));
|
paint.setColor(ResourcesCompat.getColor(_mContext.getResources(), color, _mContext.getTheme()));
|
||||||
if (j == indentationMax - 1) {
|
if (j == indentationMax - 1) {
|
||||||
paint.setPathEffect(new DashPathEffect(
|
paint.setPathEffect(new DashPathEffect(
|
||||||
|
|
Loading…
Reference in a new issue