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 7ce58fee6c
commit 427ccb41c3
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>