TaskPanelStackSubContainerController

The task panel sub-container controller.

This panel container attaches a TaskPanelStackData.stackedPanels and optionally a TaskPanelStackData.taskProcessPanel to a panel sub-container.

For each panel sub-container a layout based on subContainerLayoutId is inflated. If subContainerLayoutId is null then a default FragmentContainerView is used. In this case only TaskPanelStackData.stackedPanels are attached and TaskPanelStackData.taskProcessPanel is ignored and not attached.

The TaskPanelStackData.stackedPanels are attached to a panel fragment container with Android view ID ttivi_systemui_taskpanel_subcontainer_taskpanels_stub_id. If it is not found, the sub-container root view is used.

The TaskPanelStackData.taskProcessPanel, if any, is attached to a panel fragment container with Android view ID ttivi_systemui_taskpanel_subcontainer_taskprocesspanel_stub_id. If it is not found or if ttivi_systemui_taskpanel_subcontainer_taskpanels_stub_id is not found the TaskPanelStackData.taskProcessPanel is ignored and not attached.

Constructors

Link copied to clipboard
fun TaskPanelStackSubContainerController(@LayoutRes subContainerLayoutId: Int? = null)

Inherited functions

Link copied to clipboard

Creates a new panel sub-container. If getNewSubContainerData returned a non-empty collection, this method is called for each item in the collection.

Link copied to clipboard

Determines if new panel sub-containers should be created, based on panelContainerViewModel.

Link copied to clipboard
Link copied to clipboard
open override fun isSubContainerExitAllowed(subContainerViewModel: TaskPanelStackSubContainerViewModel): Boolean

Whether the panel sub-container exit of the given subContainerViewModel is allowed.