Change default value of `saveStateOnSwitching` to `true`

This commit is contained in:
Daniil Borisovskii 2019-09-30 21:16:05 +03:00
parent dd52179e29
commit c173e7ad64
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ abstract class BottomNavigationFragment : Fragment() {
data class TabData(
val viewControllerClass: Class<out ViewController<*, *>>,
val viewControllerState: Parcelable,
val saveStateOnSwitching: Boolean = false
//It can be useful in some cases when it is necessary to create ViewController
//with initial state every time when tab opens.
val saveStateOnSwitching: Boolean = true
)
}