val prompt = BiometricPromptCompat.Builder(context)
.setTitle(context.getString(R.string.biometrics_enroll_title))
.setDescription(context.getString(R.string.biometrics_enroll_subtitle))
.setNegativeButton(context.getString(R.string.biometrics_cancel)) { dialogInterface, _ ->
dialogInterface?.let {
dialogInterface.cancel()
dialogInterface.dismiss()
}
emitter.onError(DomainException(DomainError.BIOMETRICS_CANCELLED_BY_USER))
}
.build()
Maybe it's my negative button handling there, which calls cancel and then dismiss?