-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot register twice successively #41
Comments
WDYM by twice? like clicking twice? |
if i submit registration for user1, and when i try to submit new registration for user2, the previous error will occured. |
ohh gotcha.
Can you please attach some sample code for 2 regiatrations so it'll be
easier to reproduce and debug?
…On Fri, May 4, 2018, 02:27 elhexx ***@***.***> wrote:
if i submit registration for user1, and when i try to submit new
registration for user2, the previous error will occured.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABuKUSYcFL_ZoxH0grqLljXHDv0z_semks5tu5J7gaJpZM4TwYP4>
.
|
Also if i registred a new user, the login button doesn't work like if it is disabled, so i must restart the application the login. final MaterialLoginView login = (MaterialLoginView) findViewById(R.id.login);
((DefaultLoginView)login.getLoginView()).setListener(new DefaultLoginView.DefaultLoginViewListener() {
@Override
public void onLogin(TextInputLayout loginUser, TextInputLayout loginPass) {
//Handle login
login(loginUser.getEditText().getText().toString(), loginPass.getEditText().getText().toString());
}
});
((DefaultRegisterView)login.getRegisterView()).setListener(new DefaultRegisterView.DefaultRegisterViewListener() {
@Override
public void onRegister(TextInputLayout registerUser, TextInputLayout registerPass, TextInputLayout registerPassRep) {
//Handle register
register(registerUser.getEditText().getText().toString(),
registerPass.getEditText().getText().toString(),
registerPassRep.getEditText().getText().toString());
}
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i got this message error when i try to register twice successively :
java.lang.NullPointerException: Attempt to invoke interface method 'void shem.com.materiallogin.DefaultRegisterView$DefaultRegisterViewListener.onRegister(android.support.design.widget.TextInputLayout, android.support.design.widget.TextInputLayout, android.support.design.widget.TextInputLayout)' on a null object reference at shem.com.materiallogin.DefaultRegisterView$1.onClick(DefaultRegisterView.java:67) at android.view.View.performClick(View.java:4780) at android.view.View$PerformClick.run(View.java:19866) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
The text was updated successfully, but these errors were encountered: