Merge "Use if instead of non-exhaustive when clause"
This commit is contained in:
committed by
Android (Google) Code Review
commit
19b974de69
@@ -79,10 +79,8 @@ fun CreatePasskeyScreen(
|
||||
sheetShape = Shapes.medium,
|
||||
) {}
|
||||
LaunchedEffect(state.currentValue) {
|
||||
when (state.currentValue) {
|
||||
ModalBottomSheetValue.Hidden -> {
|
||||
cancelActivity()
|
||||
}
|
||||
if (state.currentValue == ModalBottomSheetValue.Hidden) {
|
||||
cancelActivity()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,10 +64,8 @@ fun GetCredentialScreen(
|
||||
sheetShape = Shapes.medium,
|
||||
) {}
|
||||
LaunchedEffect(state.currentValue) {
|
||||
when (state.currentValue) {
|
||||
ModalBottomSheetValue.Hidden -> {
|
||||
cancelActivity()
|
||||
}
|
||||
if (state.currentValue == ModalBottomSheetValue.Hidden) {
|
||||
cancelActivity()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user