Merge pull request #118 from TouchInstinct/fix/static

"fix" static
This commit is contained in:
PilotOfSparrow 2020-03-27 13:11:23 +03:00 committed by GitHub
commit 5879bea4b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class BottomNavigationController(
fun detach() = callback?.let(fragmentManager::unregisterFragmentLifecycleCallbacks)
@Suppress("detekt.ComplexMethod")
fun navigateTo(@IdRes itemId: Int, state: Parcelable? = null) {
// Find view controller class that needs to open
val (viewControllerClass, defaultViewControllerState, saveStateOnSwitching) = viewControllers[itemId] ?: return