mirror of
				https://codeberg.org/tom79/Fedilab.git
				synced 2025-10-20 11:20:16 +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; | ||||
| 
 | ||||
|                         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( | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue