@Test public void testOnClickResendEmail_expectSendEmailLinkFlowStarted() { EmailActivity emailActivity = createActivity(AuthUI.EMAIL_LINK_PROVIDER); emailActivity.onClickResendEmail(EMAIL); EmailLinkFragment fragment = (EmailLinkFragment) emailActivity .getSupportFragmentManager().findFragmentByTag(EmailLinkFragment.TAG); assertThat(fragment).isNotNull(); }
@Override public void onClickResendEmail(String email) { if (getSupportFragmentManager().getBackStackEntryCount() > 0) { getSupportFragmentManager().popBackStack(); } AuthUI.IdpConfig emailConfig = ProviderUtils.getConfigFromIdpsOrThrow( getFlowParams().providers, EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD); showRegisterEmailLinkFragment( emailConfig, email); }
EmailActivity extends AppCompatBase implements CheckEmailFragment.CheckEmailListener,
        RegisterEmailFragment.AnonymousUpgradeListener, EmailLinkFragment
                .TroubleSigningInListener, TroubleSigningInFragment.ResendEmailListener { @Override public void onClickResendEmail(String email) { if (getSupportFragmentManager().getBackStackEntryCount() > 0) { getSupportFragmentManager().popBackStack(); } AuthUI.IdpConfig emailConfig = ProviderUtils.getConfigFromIdpsOrThrow( getFlowParams().providers, EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD); showRegisterEmailLinkFragment( emailConfig, email); } }
EmailActivity extends AppCompatBase implements CheckEmailFragment.CheckEmailListener,
        RegisterEmailFragment.AnonymousUpgradeListener, EmailLinkFragment
                .TroubleSigningInListener, TroubleSigningInFragment.ResendEmailListener { @Override public void onClickResendEmail(String email) { if (getSupportFragmentManager().getBackStackEntryCount() > 0) { getSupportFragmentManager().popBackStack(); } AuthUI.IdpConfig emailConfig = ProviderUtils.getConfigFromIdpsOrThrow( getFlowParams().providers, EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD); showRegisterEmailLinkFragment( emailConfig, email); }  }
EmailActivity extends AppCompatBase implements CheckEmailFragment.CheckEmailListener,
        RegisterEmailFragment.AnonymousUpgradeListener, EmailLinkFragment
                .TroubleSigningInListener, TroubleSigningInFragment.ResendEmailListener { @Override public void onClickResendEmail(String email) { if (getSupportFragmentManager().getBackStackEntryCount() > 0) { getSupportFragmentManager().popBackStack(); } AuthUI.IdpConfig emailConfig = ProviderUtils.getConfigFromIdpsOrThrow( getFlowParams().providers, EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD); showRegisterEmailLinkFragment( emailConfig, email); }  static Intent createIntent(Context context, FlowParameters flowParams); static Intent createIntent(Context context, FlowParameters flowParams, String email); static Intent createIntentForLinking(Context context, FlowParameters flowParams,
                                                IdpResponse responseForLinking); @Override void onExistingEmailUser(User user); @Override void onExistingIdpUser(User user); @Override void onNewUser(User user); @Override void onTroubleSigningIn(String email); @Override void onClickResendEmail(String email); @Override void onSendEmailFailure(Exception e); @Override void onDeveloperFailure(Exception e); @Override void showProgress(@StringRes int message); @Override void hideProgress(); @Override void onMergeFailure(IdpResponse response); }
EmailActivity extends AppCompatBase implements CheckEmailFragment.CheckEmailListener,
        RegisterEmailFragment.AnonymousUpgradeListener, EmailLinkFragment
                .TroubleSigningInListener, TroubleSigningInFragment.ResendEmailListener { @Override public void onClickResendEmail(String email) { if (getSupportFragmentManager().getBackStackEntryCount() > 0) { getSupportFragmentManager().popBackStack(); } AuthUI.IdpConfig emailConfig = ProviderUtils.getConfigFromIdpsOrThrow( getFlowParams().providers, EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD); showRegisterEmailLinkFragment( emailConfig, email); }  static Intent createIntent(Context context, FlowParameters flowParams); static Intent createIntent(Context context, FlowParameters flowParams, String email); static Intent createIntentForLinking(Context context, FlowParameters flowParams,
                                                IdpResponse responseForLinking); @Override void onExistingEmailUser(User user); @Override void onExistingIdpUser(User user); @Override void onNewUser(User user); @Override void onTroubleSigningIn(String email); @Override void onClickResendEmail(String email); @Override void onSendEmailFailure(Exception e); @Override void onDeveloperFailure(Exception e); @Override void showProgress(@StringRes int message); @Override void hideProgress(); @Override void onMergeFailure(IdpResponse response);  }