mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 10:18:59 +03:00
improve detekt score
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
711b2334b0
commit
9741cf21c9
1 changed files with 4 additions and 2 deletions
|
@ -32,9 +32,11 @@ import androidx.core.graphics.drawable.RoundedBitmapDrawable
|
|||
class AvatarWithStatus(val roundedBitmapDrawable: RoundedBitmapDrawable) : Drawable() {
|
||||
private val redPaint: Paint = Paint().apply { setARGB(255, 255, 0, 0) }
|
||||
|
||||
private val avatarSize = 100
|
||||
|
||||
override fun draw(canvas: Canvas) {
|
||||
val width = 100
|
||||
val height = 100
|
||||
val width = avatarSize
|
||||
val height = avatarSize
|
||||
val radius: Float = Math.min(width, height).toFloat() / 2f
|
||||
|
||||
// Draw a red circle in the center
|
||||
|
|
Loading…
Reference in a new issue