Relax Android biometric availability check
This commit is contained in:
@@ -18,8 +18,8 @@ android {
|
||||
applicationId "net.linkedcorp.linkedsign"
|
||||
minSdk 26
|
||||
targetSdk 35
|
||||
versionCode 10206
|
||||
versionName "1.2.6"
|
||||
versionCode 10207
|
||||
versionName "1.2.7"
|
||||
|
||||
buildConfigField "String", "API_BASE_URL", "\"${apiBaseUrl}\""
|
||||
}
|
||||
|
||||
@@ -2252,10 +2252,14 @@ private fun canUseBiometricAccess(context: Context): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
val result = BiometricManager.from(context)
|
||||
.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG or BiometricManager.Authenticators.BIOMETRIC_WEAK)
|
||||
val manager = BiometricManager.from(context)
|
||||
val weakResult = manager.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_WEAK)
|
||||
if (weakResult == BiometricManager.BIOMETRIC_SUCCESS) {
|
||||
return true
|
||||
}
|
||||
|
||||
return result == BiometricManager.BIOMETRIC_SUCCESS
|
||||
val strongResult = manager.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG)
|
||||
return strongResult == BiometricManager.BIOMETRIC_SUCCESS
|
||||
}
|
||||
|
||||
private fun requestBiometricUnlock(
|
||||
|
||||
Reference in New Issue
Block a user