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(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null)
Image( Image(
modifier = Modifier.align(Alignment.Center), modifier = Modifier.align(Alignment.Center),
painter = painterResource(id = R.mipmap.ic_launcher_foreground), painter = painterResource(id = R.mipmap.ic_launcher_foreground_enterprise),
contentDescription = null, contentDescription = null,
) )
} }
@ -46,7 +46,7 @@ internal fun RoundIconPreview() {
Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null) Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null)
Image( Image(
modifier = Modifier.align(Alignment.Center), modifier = Modifier.align(Alignment.Center),
painter = painterResource(id = R.mipmap.ic_launcher_foreground), painter = painterResource(id = R.mipmap.ic_launcher_foreground_enterprise),
contentDescription = null, contentDescription = null,
) )
} }

View file

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

View file

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