Skip to content

Commit

Permalink
Init using the drawable instrinsic size
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Jun 28, 2022
1 parent 8a62963 commit a2fde10
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ class DrawablePainter(
val drawable: Drawable
) : Painter(), RememberObserver {
private var drawInvalidateTick by mutableStateOf(0)
private var drawableIntrinsicSize by mutableStateOf(Size.Unspecified)
private var drawableIntrinsicSize by mutableStateOf(drawable.intrinsicSize)

private val callback: Drawable.Callback by lazy {
object : Drawable.Callback {
Expand Down

0 comments on commit a2fde10

Please sign in to comment.