Rename val
This commit is contained in:
parent
fa64db56e7
commit
4d60d6d3be
2 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ import kotlinx.parcelize.Parcelize
|
||||||
class FtueFlowNode(
|
class FtueFlowNode(
|
||||||
@Assisted buildContext: BuildContext,
|
@Assisted buildContext: BuildContext,
|
||||||
@Assisted plugins: List<Plugin>,
|
@Assisted plugins: List<Plugin>,
|
||||||
private val ftueState: DefaultFtueService,
|
private val defaultFtueService: DefaultFtueService,
|
||||||
private val analyticsEntryPoint: AnalyticsEntryPoint,
|
private val analyticsEntryPoint: AnalyticsEntryPoint,
|
||||||
private val analyticsService: AnalyticsService,
|
private val analyticsService: AnalyticsService,
|
||||||
private val lockScreenEntryPoint: LockScreenEntryPoint,
|
private val lockScreenEntryPoint: LockScreenEntryPoint,
|
||||||
|
|
@ -90,7 +90,7 @@ class FtueFlowNode(
|
||||||
.onEach { moveToNextStepIfNeeded() }
|
.onEach { moveToNextStepIfNeeded() }
|
||||||
.launchIn(lifecycleScope)
|
.launchIn(lifecycleScope)
|
||||||
|
|
||||||
ftueState.isVerificationStatusKnown
|
defaultFtueService.isVerificationStatusKnown
|
||||||
.filter { it }
|
.filter { it }
|
||||||
.onEach { moveToNextStepIfNeeded() }
|
.onEach { moveToNextStepIfNeeded() }
|
||||||
.launchIn(lifecycleScope)
|
.launchIn(lifecycleScope)
|
||||||
|
|
@ -134,7 +134,7 @@ class FtueFlowNode(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun moveToNextStepIfNeeded() = lifecycleScope.launch {
|
private fun moveToNextStepIfNeeded() = lifecycleScope.launch {
|
||||||
when (ftueState.getNextStep()) {
|
when (defaultFtueService.getNextStep()) {
|
||||||
FtueStep.WaitingForInitialState -> {
|
FtueStep.WaitingForInitialState -> {
|
||||||
backstack.newRoot(NavTarget.Placeholder)
|
backstack.newRoot(NavTarget.Placeholder)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class DefaultFtueEntryPointTest {
|
||||||
buildContext = buildContext,
|
buildContext = buildContext,
|
||||||
plugins = plugins,
|
plugins = plugins,
|
||||||
analyticsEntryPoint = { _, _ -> lambdaError() },
|
analyticsEntryPoint = { _, _ -> lambdaError() },
|
||||||
ftueState = createDefaultFtueService(),
|
defaultFtueService = createDefaultFtueService(),
|
||||||
analyticsService = FakeAnalyticsService(),
|
analyticsService = FakeAnalyticsService(),
|
||||||
lockScreenEntryPoint = object : LockScreenEntryPoint {
|
lockScreenEntryPoint = object : LockScreenEntryPoint {
|
||||||
override fun nodeBuilder(
|
override fun nodeBuilder(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue