Skip to content

Commit

Permalink
[Owl] Fix image sizes. (android#532)
Browse files Browse the repository at this point in the history
Change-Id: Iff78976dfc274d16327d05289da2c65f2d5c6229
  • Loading branch information
nickbutcher authored May 18, 2021
1 parent 59b04ce commit c9580ef
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
Expand Down Expand Up @@ -62,6 +63,7 @@ fun NetworkImage(
painter = painter,
contentDescription = contentDescription,
contentScale = contentScale,
modifier = Modifier.fillMaxSize()
)

if (painter.loadState is ImageLoadState.Loading && placeholderColor != null) {
Expand Down

0 comments on commit c9580ef

Please sign in to comment.