File tree 2 files changed +5
-4
lines changed
auth/src/main/java/com/firebase/ui/auth
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -109,15 +109,16 @@ protected void onFailure(@NonNull Exception e) {
109
109
110
110
@ Override
111
111
public void onClick (View view ) {
112
- if (view .getId () == R .id .button_done
113
- && mEmailFieldValidator .validate (mEmailEditText .getText ())) {
112
+ if (view .getId () == R .id .button_done ) {
114
113
onDonePressed ();
115
114
}
116
115
}
117
116
118
117
@ Override
119
118
public void onDonePressed () {
120
- mHandler .startReset (mEmailEditText .getText ().toString ());
119
+ if (mEmailFieldValidator .validate (mEmailEditText .getText ())) {
120
+ mHandler .startReset (mEmailEditText .getText ().toString ());
121
+ }
121
122
}
122
123
123
124
private void showEmailSentDialog (String email ) {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public RecoverPasswordHandler(Application application) {
15
15
super (application );
16
16
}
17
17
18
- public void startReset (final String email ) {
18
+ public void startReset (@ NonNull final String email ) {
19
19
setResult (Resource .<String >forLoading ());
20
20
getAuth ().sendPasswordResetEmail (email )
21
21
.addOnCompleteListener (new OnCompleteListener <Void >() {
You can’t perform that action at this time.
0 commit comments