Skip to content

Commit

Permalink
Revert to using Defult back configuration in createNavigationController
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-udy committed May 2, 2024
1 parent 42a22fb commit f43cb07
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import androidx.annotation.Keep
*/
public fun NavigationApplication.createNavigationController(
strictMode: Boolean = false,
backConfiguration: EnroBackConfiguration = EnroBackConfiguration.Predictive,
backConfiguration: EnroBackConfiguration = EnroBackConfiguration.Default,
block: NavigationModuleScope.() -> Unit = {}
): NavigationController {
if (this !is Application)
Expand All @@ -31,15 +31,15 @@ public fun NavigationApplication.createNavigationController(
)
public fun NavigationApplication.navigationController(
strictMode: Boolean = false,
backConfiguration: EnroBackConfiguration = EnroBackConfiguration.Predictive,
backConfiguration: EnroBackConfiguration = EnroBackConfiguration.Default,
block: NavigationModuleScope.() -> Unit = {}
): NavigationController = createNavigationController(strictMode, backConfiguration, block)


@Keep // Used by EnroTest
internal fun createUnattachedNavigationController(
strictMode: Boolean = false,
backConfiguration: EnroBackConfiguration = EnroBackConfiguration.Predictive,
backConfiguration: EnroBackConfiguration = EnroBackConfiguration.Default,
block: NavigationModuleScope.() -> Unit = {}
): NavigationController {
val navigationController = NavigationController()
Expand Down

0 comments on commit f43cb07

Please sign in to comment.