Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bcf4191 authored by Qinmei Du's avatar Qinmei Du
Browse files

Add the confirm button on the creation selection screen

Test: deployed locally

Bug: 253157211
Change-Id: I7f5da4e4df9bf27e176fc1844de1f5a45f5ecabf
parent d4b9ad63
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ fun CreatePasskeyScreen(
          providerInfo = uiState.activeEntry?.activeProvider!!,
          createOptionInfo = uiState.activeEntry.activeCreateOptionInfo,
          onOptionSelected = {viewModel.onPrimaryCreateOptionInfoSelected()},
          onConfirm = {viewModel.onPrimaryCreateOptionInfoSelected()},
          onCancel = {viewModel.onCancel()},
          multiProvider = uiState.providers.size > 1,
          onMoreOptionsSelected = {viewModel.onMoreOptionsSelected()}
@@ -397,6 +398,7 @@ fun CreationSelectionCard(
  providerInfo: ProviderInfo,
  createOptionInfo: CreateOptionInfo,
  onOptionSelected: () -> Unit,
  onConfirm: () -> Unit,
  onCancel: () -> Unit,
  multiProvider: Boolean,
  onMoreOptionsSelected: () -> Unit,
@@ -468,10 +470,17 @@ fun CreationSelectionCard(
        color = Color.Transparent
      )
      Row(
        horizontalArrangement = Arrangement.Start,
        horizontalArrangement = Arrangement.SpaceBetween,
        modifier = Modifier.fillMaxWidth().padding(horizontal = 24.dp)
      ) {
        CancelButton(stringResource(R.string.string_cancel), onCancel)
        CancelButton(
          stringResource(R.string.string_cancel),
          onclick = onCancel
        )
        ConfirmButton(
          stringResource(R.string.string_continue),
          onclick = onConfirm
        )
      }
      Divider(
        thickness = 18.dp,