Authenticator: Allow using PIN/password/pattern as fallbacks

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-10-27 18:20:29 +05:30
parent cdf45bc323
commit 5df7be10b5
No known key found for this signature in database
GPG key ID: C2E74282C2133D62
2 changed files with 1 additions and 2 deletions

View file

@ -47,7 +47,7 @@ internal class Authenticator(
private val promptInfo = BiometricPrompt.PromptInfo.Builder() private val promptInfo = BiometricPrompt.PromptInfo.Builder()
.setTitle(fragmentActivity.getString(R.string.biometric_prompt_title)) .setTitle(fragmentActivity.getString(R.string.biometric_prompt_title))
.setNegativeButtonText(fragmentActivity.getString(R.string.biometric_prompt_negative_text)) .setDeviceCredentialAllowed(true)
.build() .build()
fun authenticate() { fun authenticate() {

View file

@ -264,7 +264,6 @@
<string name="sdcard_root_warning_message">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</string> <string name="sdcard_root_warning_message">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</string>
<string name="git_abort_and_push_title">Abort and Push</string> <string name="git_abort_and_push_title">Abort and Push</string>
<string name="biometric_prompt_title">Biometric Prompt</string> <string name="biometric_prompt_title">Biometric Prompt</string>
<string name="biometric_prompt_negative_text">Cancel</string>
<string name="biometric_prompt_retry">Retry</string> <string name="biometric_prompt_retry">Retry</string>
<string name="biometric_prompt_cancelled">Authentication canceled</string> <string name="biometric_prompt_cancelled">Authentication canceled</string>
<string name="biometric_prompt_no_hardware">No Biometric hardware was found</string> <string name="biometric_prompt_no_hardware">No Biometric hardware was found</string>