From 41c2b89c344bc22b220822c736b3d270d0da4137 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 19 Sep 2024 01:07:22 +0200 Subject: [PATCH] Added negativeButtonText, which crashes when DEVICE_CREDENTIALS is set, and which crashes if missing and DEVICE_CREDENTIALS is not set --- .../banking/ui/service/BiometricAuthenticationService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/service/BiometricAuthenticationService.kt b/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/service/BiometricAuthenticationService.kt index 439f47b..0251742 100644 --- a/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/service/BiometricAuthenticationService.kt +++ b/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/service/BiometricAuthenticationService.kt @@ -52,7 +52,7 @@ class BiometricAuthenticationService( val promptInfo = BiometricPrompt.PromptInfo.Builder() .setTitle(this.activity.getString(R.string.activity_login_authenticate_with_biometrics_prompt)) //.setSubtitle() // TODO: add subtitle? - //.setNegativeButtonText(this.activity.getString(android.R.string.cancel)) // is not allowed when device credentials are allowed + .setNegativeButtonText(this.activity.getString(android.R.string.cancel)) // is not allowed when device credentials are allowed .setAllowedAuthenticators(allowedAuthenticators) .build()