Benjamin Deroche
09/14/2023, 8:43 AMcontext.packageManager.getApplicationIcon(context.packageName)
to load my app icon as a drawable and display it with compose. But because of this, most of my previews fail to render because previews doesn't support the use of Android packagemanager.Tgo1014
09/14/2023, 8:45 AMif (isPreview)
and display some dummy icon when it’s a preview. That’s what I do for my launcher application for example.Benjamin Deroche
09/14/2023, 8:52 AMisPreview
come from?Benjamin Deroche
09/14/2023, 9:19 AMTgo1014
09/14/2023, 9:41 AMisPreview
== LocalInspectionMode.current == true