File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 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) {
109109
110110 @ Override
111111 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 ) {
114113 onDonePressed ();
115114 }
116115 }
117116
118117 @ Override
119118 public void onDonePressed () {
120- mHandler .startReset (mEmailEditText .getText ().toString ());
119+ if (mEmailFieldValidator .validate (mEmailEditText .getText ())) {
120+ mHandler .startReset (mEmailEditText .getText ().toString ());
121+ }
121122 }
122123
123124 private void showEmailSentDialog (String email ) {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public RecoverPasswordHandler(Application application) {
1515 super (application );
1616 }
1717
18- public void startReset (final String email ) {
18+ public void startReset (@ NonNull final String email ) {
1919 setResult (Resource .<String >forLoading ());
2020 getAuth ().sendPasswordResetEmail (email )
2121 .addOnCompleteListener (new OnCompleteListener <Void >() {
You can’t perform that action at this time.
0 commit comments