Rename resource to avoid resource override when generating screenshot.

This commit is contained in:
Benoit Marty 2024-07-03 18:01:41 +02:00
parent 64cb2d29ae
commit c823ca90ce
5 changed files with 6 additions and 6 deletions

View file

@ -33,7 +33,7 @@ internal fun IconPreview() {
Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null)
Image(
modifier = Modifier.align(Alignment.Center),
painter = painterResource(id = R.mipmap.ic_launcher_foreground),
painter = painterResource(id = R.mipmap.ic_launcher_foreground_enterprise),
contentDescription = null,
)
}
@ -46,7 +46,7 @@ internal fun RoundIconPreview() {
Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null)
Image(
modifier = Modifier.align(Alignment.Center),
painter = painterResource(id = R.mipmap.ic_launcher_foreground),
painter = painterResource(id = R.mipmap.ic_launcher_foreground_enterprise),
contentDescription = null,
)
}

View file

@ -16,6 +16,6 @@
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<background android:drawable="@drawable/ic_launcher_background_enterprise"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground_enterprise"/>
</adaptive-icon>

View file

@ -16,6 +16,6 @@
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
<background android:drawable="@drawable/ic_launcher_background_enterprise" />
<foreground android:drawable="@mipmap/ic_launcher_foreground_enterprise" />
</adaptive-icon>