PasscodeView icon indicating copy to clipboard operation
PasscodeView copied to clipboard

After a restart, the invalid password method is executed

Open baralgin1003 opened this issue 6 years ago • 2 comments

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 avatar May 08 '18 08:05 baralgin1003

@baralgin1003 Can you share the screen recording of what is happening?

kevalpatel2106 avatar May 08 '18 08:05 kevalpatel2106

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

baralgin1003 avatar May 08 '18 10:05 baralgin1003