mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Remove or replace unnecessary BackHandler calls (#4148)
* Remove/replace `BackHandler` calls: - For `UserProfileView`, remove the redundant `BackHandler` -> `navigateUp()` call. - For `SetupBiometricView`, remove the `enabled = true` parameter, as this is the default value.
This commit is contained in:
committed by
GitHub
parent
f31e648e35
commit
a74a62c090
+2
-3
@@ -45,9 +45,8 @@ fun QrCodeConfirmationView(
|
||||
onCancel: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
BackHandler {
|
||||
onCancel()
|
||||
}
|
||||
BackHandler(onBack = onCancel)
|
||||
|
||||
val icon = when (step) {
|
||||
is QrCodeConfirmationStep.DisplayCheckCode -> CompoundIcons.Computer()
|
||||
is QrCodeConfirmationStep.DisplayVerificationCode -> CompoundIcons.LockSolid()
|
||||
|
||||
+2
-4
@@ -45,16 +45,14 @@ fun QrCodeErrorView(
|
||||
onRetry: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
BackHandler {
|
||||
onRetry()
|
||||
}
|
||||
BackHandler(onBack = onRetry)
|
||||
FlowStepPage(
|
||||
modifier = modifier,
|
||||
iconStyle = BigIcon.Style.AlertSolid,
|
||||
title = titleText(errorScreenType, appName),
|
||||
subTitle = subtitleText(errorScreenType, appName),
|
||||
content = { Content(errorScreenType) },
|
||||
buttons = { Buttons(onRetry) }
|
||||
buttons = { Buttons(onRetry) },
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user