setSaveInstanceStateEnabled

Control whether state should be saved via Activity.onSaveInstanceState or Fragment.onSaveInstanceState, false otherwise. Default is true.

Parameters

enabled

true if state should be persisted, false otherwise.