Mark
08/10/2025, 9:13 AMpainterResource(Int)
throws a “Error attempting to load resource:” exception (the resource ID is declared as a placeholder in some common module and then provided in some higher level module, and it seems that some weird devices don’t like that). This particular image isn’t important so I’d like to just show blank space when it fails. However, since we can’t use try/catch around composable functions, how to deal with this?
EDIT: I suppose I could just test using ImageBitmap.imageResource(res, id)
but since this is a rare case I don’t want to do it every time, only as a fallback.