onSaveInstanceState

open fun onSaveInstanceState(savedInstanceState: Bundle)

Stores the expanded state map across state loss.

Should be called from whatever Activity that hosts the RecyclerView that ExpandableRecyclerViewAdapter is attached to.

This will make sure to add the expanded state map as an extra to the instance state bundle to be used in onRestoreInstanceState.

Parameters

savedInstanceState

The Bundle into which to store the expanded state map