From 5df7be10b5f30dce68a23eb55f1dae9edc0263c0 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 27 Oct 2019 18:20:29 +0530 Subject: [PATCH] Authenticator: Allow using PIN/password/pattern as fallbacks Signed-off-by: Harsh Shandilya --- .../main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt | 2 +- app/src/main/res/values/strings.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt b/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt index 6e7f82d7..71e5df54 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt @@ -47,7 +47,7 @@ internal class Authenticator( private val promptInfo = BiometricPrompt.PromptInfo.Builder() .setTitle(fragmentActivity.getString(R.string.biometric_prompt_title)) - .setNegativeButtonText(fragmentActivity.getString(R.string.biometric_prompt_negative_text)) + .setDeviceCredentialAllowed(true) .build() fun authenticate() { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 62e478e5..0c8950e6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -264,7 +264,6 @@ You have selected the root of your sdcard for the store. This is extremely dangerous and you will lose your data as its content will, eventually, be deleted Abort and Push Biometric Prompt - Cancel Retry Authentication canceled No Biometric hardware was found