mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
[PM-13387] Skip unneeded confirmation button when using passive biometrics such as face unlock (#4064)
This commit is contained in:
parent
efbf84238d
commit
12afbea83e
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,7 @@ class BiometricsManagerImpl(
|
|||
.setDescription(activity.getString(R.string.biometrics_direction))
|
||||
.setAllowedAuthenticators(Authenticators.BIOMETRIC_STRONG)
|
||||
.setNegativeButtonText(activity.getString(R.string.cancel))
|
||||
.setConfirmationRequired(false)
|
||||
biometricPrompt.authenticate(
|
||||
promptInfoBuilder.build(),
|
||||
BiometricPrompt.CryptoObject(it),
|
||||
|
@ -144,6 +145,7 @@ class BiometricsManagerImpl(
|
|||
.setAllowedAuthenticators(
|
||||
Authenticators.BIOMETRIC_STRONG or Authenticators.DEVICE_CREDENTIAL,
|
||||
)
|
||||
.setConfirmationRequired(false)
|
||||
biometricPrompt.authenticate(promptInfoBuilder.build())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue