Change action to only "Done" when there is a verification failure.
This commit is contained in:
parent
3a2baed2df
commit
4ba60b7a83
3 changed files with 3 additions and 27 deletions
|
|
@ -66,9 +66,6 @@ class VerifySelfSessionStateMachine @Inject constructor(
|
|||
}
|
||||
}
|
||||
inState<State.Canceled> {
|
||||
on { _: Event.RequestVerification, state ->
|
||||
state.override { State.RequestingVerification.andLogStateChange() }
|
||||
}
|
||||
on { _: Event.Reset, state ->
|
||||
state.override { State.Initial.andLogStateChange() }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -290,14 +290,11 @@ private fun VerifySelfSessionBottomMenu(
|
|||
VerificationBottomMenu {
|
||||
Button(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
text = stringResource(R.string.screen_session_verification_positive_button_canceled),
|
||||
onClick = { eventSink(VerifySelfSessionViewEvents.RequestVerification) },
|
||||
)
|
||||
TextButton(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
text = stringResource(CommonStrings.action_cancel),
|
||||
text = stringResource(CommonStrings.action_done),
|
||||
onClick = onCancelClick,
|
||||
)
|
||||
// Placeholder so the 1st button keeps its vertical position
|
||||
Spacer(modifier = Modifier.height(40.dp))
|
||||
}
|
||||
}
|
||||
is Step.Ready -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue