fix: check feature flag before biometric auth
This commit is contained in:
parent
789efc46a3
commit
29ca93854a
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ class AutofillDecryptActivity : BasePgpActivity() {
|
|||
requireKeysExist {
|
||||
val gpgIdentifiers = getGpgIdentifiers("") ?: return@requireKeysExist
|
||||
if (
|
||||
BiometricAuthenticator.canAuthenticate(this) && features.isEnabled(EnableGPGPassphraseCache)
|
||||
features.isEnabled(EnableGPGPassphraseCache) && BiometricAuthenticator.canAuthenticate(this)
|
||||
) {
|
||||
BiometricAuthenticator.authenticate(this) { authResult ->
|
||||
if (authResult is BiometricAuthenticator.Result.Success) {
|
||||
|
|
|
@ -69,8 +69,8 @@ class DecryptActivity : BasePgpActivity() {
|
|||
}
|
||||
}
|
||||
if (
|
||||
BiometricAuthenticator.canAuthenticate(this@DecryptActivity) &&
|
||||
features.isEnabled(EnableGPGPassphraseCache)
|
||||
features.isEnabled(EnableGPGPassphraseCache) &&
|
||||
BiometricAuthenticator.canAuthenticate(this@DecryptActivity)
|
||||
) {
|
||||
BiometricAuthenticator.authenticate(this@DecryptActivity) { authResult ->
|
||||
requireKeysExist { decrypt(isError = false, authResult) }
|
||||
|
|
Loading…
Reference in a new issue