We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580ef0b commit c5d9bbdCopy full SHA for c5d9bbd
1 file changed
AnkiDroid/src/main/java/com/ichi2/utils/AlertDialogFacade.kt
@@ -364,7 +364,7 @@ fun AlertDialog.input(
364
// handle validation errors
365
val validationError = validator?.invoke(input)
366
this@input.getInputTextLayout().error = validationError?.error
367
- this@input.positiveButton.isEnabled = validationError == null
+ this@input.positiveButton.isEnabled = validationError?.error == null
368
if (validationError != null) return@doOnTextChanged
369
370
// no errors, see if we should fire the callback on every keypress
0 commit comments