Right before I put my phone to sleep a box with Mo...
# compose
d
Right before I put my phone to sleep a box with Modifier.fillMaxSize() that previously had a minWidth=maxWidth=screen width and minHeight=maxHeight=screen height gets re-laid out with a minWidth and minHeight of 0, and a maxWidth and maxHeight the same as previously. Why is this the case? For my app resizing the screen is unavoidably very expensive, so I want to detect that this new layout will never be shown and not bother rendering. Can I reliably do that by detecting minWidth=minHeight=0?