mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +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))
|
.setDescription(activity.getString(R.string.biometrics_direction))
|
||||||
.setAllowedAuthenticators(Authenticators.BIOMETRIC_STRONG)
|
.setAllowedAuthenticators(Authenticators.BIOMETRIC_STRONG)
|
||||||
.setNegativeButtonText(activity.getString(R.string.cancel))
|
.setNegativeButtonText(activity.getString(R.string.cancel))
|
||||||
|
.setConfirmationRequired(false)
|
||||||
biometricPrompt.authenticate(
|
biometricPrompt.authenticate(
|
||||||
promptInfoBuilder.build(),
|
promptInfoBuilder.build(),
|
||||||
BiometricPrompt.CryptoObject(it),
|
BiometricPrompt.CryptoObject(it),
|
||||||
|
@ -144,6 +145,7 @@ class BiometricsManagerImpl(
|
||||||
.setAllowedAuthenticators(
|
.setAllowedAuthenticators(
|
||||||
Authenticators.BIOMETRIC_STRONG or Authenticators.DEVICE_CREDENTIAL,
|
Authenticators.BIOMETRIC_STRONG or Authenticators.DEVICE_CREDENTIAL,
|
||||||
)
|
)
|
||||||
|
.setConfirmationRequired(false)
|
||||||
biometricPrompt.authenticate(promptInfoBuilder.build())
|
biometricPrompt.authenticate(promptInfoBuilder.build())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue