fix(crash): home button painted adaptive mipmap.ic_launcher — on API 26+ that resolves to the adaptive-icon XML and painterResource throws IllegalArgumentException ('Only VectorDrawables and rasterized asset types'), killing the app on first frame. Add rasterized ic_home_mark PNGs and paint those instead; bump to 0.1.2 (versionCode 3).
This commit is contained in:
parent
90afcf3b6a
commit
598556dbdd
6 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ fun AppHomeButton(
|
|||
) {
|
||||
IconButton(onClick = onClick, modifier = modifier) {
|
||||
Image(
|
||||
painter = painterResource(R.mipmap.ic_launcher),
|
||||
painter = painterResource(R.drawable.ic_home_mark),
|
||||
contentDescription = "Home",
|
||||
modifier = Modifier
|
||||
.size(30.dp)
|
||||
|
|
|
|||
BIN
app/src/main/res/drawable-hdpi/ic_home_mark.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_home_mark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_home_mark.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_home_mark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_home_mark.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_home_mark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_home_mark.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_home_mark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_home_mark.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_home_mark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Loading…
Add table
Add a link
Reference in a new issue