mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 12:54:35 +00:00
Verification: always render the back button.
This commit is contained in:
+1
-5
@@ -70,11 +70,7 @@ fun IncomingVerificationView(
|
|||||||
TopAppBar(
|
TopAppBar(
|
||||||
title = {},
|
title = {},
|
||||||
navigationIcon = {
|
navigationIcon = {
|
||||||
when {
|
BackButton(onClick = { state.eventSink(IncomingVerificationViewEvents.GoBack) })
|
||||||
step is Step.Initial && !step.isWaiting -> Unit
|
|
||||||
step is Step.Completed -> Unit
|
|
||||||
else -> BackButton(onClick = { state.eventSink(IncomingVerificationViewEvents.GoBack) })
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
colors = topAppBarColors(containerColor = Color.Transparent),
|
colors = topAppBarColors(containerColor = Color.Transparent),
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-4
@@ -94,10 +94,8 @@ fun OutgoingVerificationView(
|
|||||||
topBar = {
|
topBar = {
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
title = {},
|
title = {},
|
||||||
navigationIcon = if (step != Step.Completed) {
|
navigationIcon = {
|
||||||
{ BackButton(onClick = ::cancelOrResetFlow) }
|
BackButton(onClick = ::cancelOrResetFlow)
|
||||||
} else {
|
|
||||||
{}
|
|
||||||
},
|
},
|
||||||
colors = topAppBarColors(containerColor = Color.Transparent)
|
colors = topAppBarColors(containerColor = Color.Transparent)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user