Avoid lint warnings
This commit is contained in:
@ -1191,14 +1191,14 @@ object Utils {
|
|||||||
try {
|
try {
|
||||||
bgPaint.color = colorHex.toColorInt()
|
bgPaint.color = colorHex.toColorInt()
|
||||||
} catch (_: Exception) {
|
} catch (_: Exception) {
|
||||||
bgPaint.color = android.graphics.Color.GRAY // Fallback color
|
bgPaint.color = Color.GRAY // Fallback color
|
||||||
}
|
}
|
||||||
canvas.drawCircle(size / 2f, size / 2f, size / 2f, bgPaint)
|
canvas.drawCircle(size / 2f, size / 2f, size / 2f, bgPaint)
|
||||||
|
|
||||||
// Draw the text (Initial)
|
// Draw the text (Initial)
|
||||||
val textPaint = android.graphics.Paint()
|
val textPaint = android.graphics.Paint()
|
||||||
textPaint.isAntiAlias = true
|
textPaint.isAntiAlias = true
|
||||||
textPaint.color = android.graphics.Color.WHITE
|
textPaint.color = Color.WHITE
|
||||||
textPaint.textSize = size / 2f // Text size is half the circle size
|
textPaint.textSize = size / 2f // Text size is half the circle size
|
||||||
textPaint.textAlign = android.graphics.Paint.Align.CENTER
|
textPaint.textAlign = android.graphics.Paint.Align.CENTER
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user