setContentViewTopPadding

Sets the top padding (in pixels) of the sibling content view that holds overlay views such as the thumbnail grid. After the first call the automatic Java-side adjustments triggered by contextual toolbar lifecycle events are suppressed, so Compose can own this value without racing against native view code.

Typical usage: call from a LaunchedEffect keyed on the collected viewWithOverlappingToolbarShown value (and the measured toolbar height) so the padding stays in sync. Reading those states only inside a SideEffect body does not subscribe the composition to them, so the effect would never re-run when the overlay opens.