updatePanelAttachments

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

Updates the panel attachments of the panel fragment containers of all PanelFragmentAdapters. Any panel that needs to be detached is detached before any new panel is attached.

Parameters

allowStateLoss

Allows the attachment to be executed after the system UI state is saved. Executing the attachment 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.