We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d960a3d commit 276209aCopy full SHA for 276209a
app/src/main/java/org/mydomain/myscan/view/Camera.kt
@@ -145,7 +145,7 @@ fun CameraScreen(
145
isProcessing = isProcessing.value,
146
pageBitmap = pageToValidate,
147
onConfirm = {
148
- viewModel.addPage(pageToValidate!!)
+ pageToValidate?.let { viewModel.addPage(it) }
149
showPageDialog.value = false
150
},
151
onReject = {
0 commit comments