Added negativeButtonText, which crashes when DEVICE_CREDENTIALS is set, and which crashes if missing and DEVICE_CREDENTIALS is not set

This commit is contained in:
dankito 2024-09-19 01:07:22 +02:00
parent 607eb4c2f5
commit 41c2b89c34
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class BiometricAuthenticationService(
val promptInfo = BiometricPrompt.PromptInfo.Builder() val promptInfo = BiometricPrompt.PromptInfo.Builder()
.setTitle(this.activity.getString(R.string.activity_login_authenticate_with_biometrics_prompt)) .setTitle(this.activity.getString(R.string.activity_login_authenticate_with_biometrics_prompt))
//.setSubtitle() // TODO: add subtitle? //.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) .setAllowedAuthenticators(allowedAuthenticators)
.build() .build()