Use SimpleFeatureEntryPoint when possible.
This commit is contained in:
parent
574c2cb2b5
commit
1dd67ca945
10 changed files with 15 additions and 39 deletions
|
|
@ -261,7 +261,7 @@ class PreferencesFlowNode(
|
|||
.build()
|
||||
}
|
||||
is NavTarget.OssLicenses -> {
|
||||
openSourceLicensesEntryPoint.getNode(this, buildContext)
|
||||
openSourceLicensesEntryPoint.createNode(this, buildContext)
|
||||
}
|
||||
NavTarget.AccountDeactivation -> {
|
||||
accountDeactivationEntryPoint.createNode(this, buildContext)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class DefaultPreferencesEntryPointTest {
|
|||
override fun nodeBuilder(parentNode: Node, buildContext: BuildContext) = lambdaError()
|
||||
},
|
||||
openSourceLicensesEntryPoint = object : OpenSourceLicensesEntryPoint {
|
||||
override fun getNode(node: Node, buildContext: BuildContext) = lambdaError()
|
||||
override fun createNode(parentNode: Node, buildContext: BuildContext) = lambdaError()
|
||||
},
|
||||
accountDeactivationEntryPoint = object : AccountDeactivationEntryPoint {
|
||||
override fun createNode(parentNode: Node, buildContext: BuildContext) = lambdaError()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue