Created
September 5, 2020 15:37
-
-
Save kubilayciftci/bbce7036f31b06ef8a9ca1cc261c1b31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task<VerifyCodeResult> task = EmailAuthProvider.requestVerifyCode(emailEditText.getText().toString(), verifyCodeSettings); | |
task.addOnSuccessListener(TaskExecutors.uiThread(), new OnSuccessListener<VerifyCodeResult>() { | |
@Override | |
public void onSuccess(VerifyCodeResult verifyCodeResult) { | |
Toast.makeText(getApplicationContext(), "Please check your e-mail", Toast.LENGTH_SHORT).show(); | |
} | |
}).addOnFailureListener(TaskExecutors.uiThread(), new OnFailureListener() { | |
@Override | |
public void onFailure(Exception e) { | |
Toast.makeText(getApplicationContext(), e.getLocalizedMessage(), Toast.LENGTH_SHORT).show(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment