mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Fix round text icons (closes #2934)
This commit is contained in:
		| @@ -93,7 +93,7 @@ fun ImageView.roundTextIcon(text: String) { | ||||
|     val letter = text.take(1).toUpperCase() | ||||
|     val size = min(this.width, this.height) | ||||
|  | ||||
|     TextDrawable( | ||||
|     setImageDrawable(TextDrawable( | ||||
|             shape = TextDrawable.DRAWABLE_SHAPE_OVAL, | ||||
|             desiredWidth = size, | ||||
|             desiredHeight = size, | ||||
| @@ -101,7 +101,7 @@ fun ImageView.roundTextIcon(text: String) { | ||||
|             textColor = Color.WHITE, | ||||
|             text = letter, | ||||
|             color = ColorGenerator.MATERIAL.getColor(letter) | ||||
|     ) | ||||
|     )) | ||||
| } | ||||
|  | ||||
| /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user