mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Update biometrics check when linking.
This commit is contained in:
committed by
Greyson Parrelli
parent
b82d16abcb
commit
95e0f7d571
@@ -260,7 +260,11 @@ class LinkDeviceFragment : ComposeFragment() {
|
||||
private inner class BiometricAuthenticationListener : BiometricPrompt.AuthenticationCallback() {
|
||||
override fun onAuthenticationError(errorCode: Int, errorString: CharSequence) {
|
||||
Log.w(TAG, "Authentication error: $errorCode")
|
||||
onAuthenticationFailed()
|
||||
if (errorCode == BiometricPrompt.ERROR_CANCELED) {
|
||||
findNavController().safeNavigate(R.id.action_linkDeviceFragment_to_addLinkDeviceFragment)
|
||||
} else {
|
||||
onAuthenticationFailed()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult) {
|
||||
|
||||
Reference in New Issue
Block a user