Skip to content

Commit

Permalink
Merge pull request #115 from ThomasLamprecht/android-fix-no-keys-enro…
Browse files Browse the repository at this point in the history
…lled

android: return correct code if no biometric is enrolled
  • Loading branch information
hpoul authored May 21, 2024
2 parents 0094e79 + de9727c commit 1a15f69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class BiometricStoragePlugin : FlutterPlugin, ActivityAware, MethodCallHandler {
val credentialsResponse = biometricManager.canAuthenticate(DEVICE_CREDENTIAL)
logger.debug { "canAuthenticate for DEVICE_CREDENTIAL: $credentialsResponse" }
if (credentialsResponse == BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED) {
return CanAuthenticateResponse.Success
return CanAuthenticateResponse.ErrorNoBiometricEnrolled
}

val response = biometricManager.canAuthenticate(
Expand Down

0 comments on commit 1a15f69

Please sign in to comment.