onRestoreInstanceState

Called when the RecyclerView is ready to restore the state based on a previous RecyclerView. Notice that this might happen after an actual layout, based on how Adapter prefers to restore State. See getStateRestorationPolicy for more information.

Parameters

state

The parcelable that was returned by the previous LayoutManager's onSaveInstanceState method.