From d4398f2bedb8a56228ddc8ea3cdcfe2a7f07444a Mon Sep 17 00:00:00 2001 From: victor-marino Date: Sun, 13 Oct 2024 11:20:29 +0200 Subject: [PATCH] Skip unneeded confirmation button when using passive biometrics such as face unlock --- .../twofasapp/feature/security/ui/biometric/BiometricDialog.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/feature/security/src/main/java/com/twofasapp/feature/security/ui/biometric/BiometricDialog.kt b/feature/security/src/main/java/com/twofasapp/feature/security/ui/biometric/BiometricDialog.kt index 41bda72a..64c03c6d 100644 --- a/feature/security/src/main/java/com/twofasapp/feature/security/ui/biometric/BiometricDialog.kt +++ b/feature/security/src/main/java/com/twofasapp/feature/security/ui/biometric/BiometricDialog.kt @@ -40,6 +40,7 @@ fun BiometricDialog( .setTitle(title) .setSubtitle(subtitle) .setNegativeButtonText(negative) + .setConfirmationRequired(false) .build() val callback = object : BiometricPrompt.AuthenticationCallback() {