Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/src/main/java/com/gothwad/store/ui/components/Chrome.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import androidx.compose.ui.unit.sp
import com.gothwad.store.R
import com.gothwad.store.ui.Routes
import com.gothwad.store.ui.theme.GothwadTheme
import com.gothwad.store.ui.theme.PlayColors

/**
* Supplied by the nav host while a bottom-tab destination is on screen, so the
Expand Down Expand Up @@ -207,11 +208,15 @@ fun KiwiStoreTopBar(
horizontalArrangement = Arrangement.spacedBy(10.dp),
) {
Image(
painter = painterResource(R.mipmap.ic_launcher),
// Use the raster foreground layer, not ic_launcher: on Android 8+
// that resource resolves to an adaptive-icon XML, which Compose's
// painterResource cannot decode and would crash the first tab.
painter = painterResource(R.mipmap.ic_launcher_foreground),
contentDescription = "Kiwi Store",
modifier = Modifier
.size(28.dp)
.clip(RoundedCornerShape(8.dp))
.background(PlayColors.Brand)
.clickable(onClick = onLogo),
)
Row(
Expand Down
Loading