Created
November 26, 2019 02:44
-
-
Save isaidamier/cc780417d1d17429ca95786a1d23b606 to your computer and use it in GitHub Desktop.
onAuthenticationError
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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