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

Commit 19b974de authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use if instead of non-exhaustive when clause"

parents fb8652f7 7080083f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -79,13 +79,11 @@ fun CreatePasskeyScreen(
    sheetShape = Shapes.medium,
  ) {}
  LaunchedEffect(state.currentValue) {
    when (state.currentValue) {
      ModalBottomSheetValue.Hidden -> {
    if (state.currentValue == ModalBottomSheetValue.Hidden) {
      cancelActivity()
    }
  }
}
}

@Composable
fun ConfirmationCard(
+2 −4
Original line number Diff line number Diff line
@@ -64,13 +64,11 @@ fun GetCredentialScreen(
    sheetShape = Shapes.medium,
  ) {}
  LaunchedEffect(state.currentValue) {
    when (state.currentValue) {
      ModalBottomSheetValue.Hidden -> {
    if (state.currentValue == ModalBottomSheetValue.Hidden) {
      cancelActivity()
    }
  }
}
}

@ExperimentalMaterialApi
@Composable