detachPanelAttachments

fun Collection<PanelFragmentAdapter>.detachPanelAttachments(allowStateLoss: Boolean = false)

Detaches the panel attaches of the panel fragment containers of all PanelFragmentAdapters.

Parameters

allowStateLoss

Allows the detachment to be executed after the system UI state is saved. Executing the detachment after the system UI state is saved is dangerous because the state can be lost if at a later moment the UI needs to be restored from its state. This should only be used for cases where the state is restored properly through other means.