Skip to content

Instantly share code, notes, and snippets.

@isaidamier
Created November 26, 2019 02:44
Show Gist options
  • Save isaidamier/cc780417d1d17429ca95786a1d23b606 to your computer and use it in GitHub Desktop.
Save isaidamier/cc780417d1d17429ca95786a1d23b606 to your computer and use it in GitHub Desktop.
onAuthenticationError
override fun onAuthenticationError(errorCode: Int, errString: CharSequence) {
super.onAuthenticationError(errorCode, errString)
Log.d(TAG, "$errorCode :: $errString")
if(errorCode == BiometricPrompt.ERROR_NEGATIVE_BUTTON) {
loginWithPassword() // Because negative button says use application password
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment