mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 16:18:55 +01:00 
			
		
		
		
	Replace left/right layout attributes with start/end
This commit is contained in:
		@@ -27,8 +27,8 @@ class SourceDividerItemDecoration(context: Context) : RecyclerView.ItemDecoratio
 | 
			
		||||
                val params = child.layoutParams as RecyclerView.LayoutParams
 | 
			
		||||
                val top = child.bottom + params.bottomMargin
 | 
			
		||||
                val bottom = top + divider.intrinsicHeight
 | 
			
		||||
                val left = parent.paddingLeft + holder.margin
 | 
			
		||||
                val right = parent.width - parent.paddingRight - holder.margin
 | 
			
		||||
                val left = parent.paddingStart + holder.margin
 | 
			
		||||
                val right = parent.width - parent.paddingEnd - holder.margin
 | 
			
		||||
 | 
			
		||||
                divider.setBounds(left, top, right, bottom)
 | 
			
		||||
                divider.draw(c)
 | 
			
		||||
 
 | 
			
		||||
@@ -27,8 +27,8 @@ class ExtensionDividerItemDecoration(context: Context) : RecyclerView.ItemDecora
 | 
			
		||||
                val params = child.layoutParams as RecyclerView.LayoutParams
 | 
			
		||||
                val top = child.bottom + params.bottomMargin
 | 
			
		||||
                val bottom = top + divider.intrinsicHeight
 | 
			
		||||
                val left = parent.paddingLeft + holder.margin
 | 
			
		||||
                val right = parent.width - parent.paddingRight - holder.margin
 | 
			
		||||
                val left = parent.paddingStart + holder.margin
 | 
			
		||||
                val right = parent.width - parent.paddingEnd - holder.margin
 | 
			
		||||
 | 
			
		||||
                divider.setBounds(left, top, right, bottom)
 | 
			
		||||
                divider.draw(c)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user