Compile SDK 35

This commit is contained in:
MM20
2024-07-18 18:46:12 +02:00
parent cf398f66a0
commit 52150c5257
10 changed files with 21 additions and 18 deletions
@@ -30,7 +30,7 @@ class BadgeDrawable(context: Context, drawable: Drawable) : Drawable() {
}
val bitmap = drw.toBitmap(size, size).run {
if(isMutable) this
else this.copy(config, true)
else this.copy(config ?: Bitmap.Config.ARGB_8888, true)
}
this.drawable = BitmapDrawable(context.resources, bitmap)
}