PasscodeView
PasscodeView copied to clipboard
After a restart, the invalid password method is executed
The first launch of the activity is normal. when I run it a second and other times, in creating an activity I get a password error, although I have not yet entered anything
@baralgin1003 Can you share the screen recording of what is happening?
ok. I changed your code for demonstration that bug
mPinView.setAuthenticationListener(new AuthenticationListener() {
@Override
public void onAuthenticationSuccessful() {
//User authenticated successfully.
//Navigate to secure screens.
startActivity(new Intent(PinViewActivity.this, AuthenticatedActivity.class));
finish();
}
@Override
public void onAuthenticationFailed() {
//Calls whenever authentication is failed or user is unauthorized.
//Do something
Toast.makeText(PinViewActivity.this, "incorrect pin", Toast.LENGTH_SHORT).show();
}
});
and video https://yadi.sk/i/awEbXhvu3VXzZN