Avoid lint warnings

This commit is contained in:
Juha Heinanen
2026-05-15 18:12:02 +03:00
parent acb44332b0
commit b85902dd6b

View File

@ -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