package com.iitp.njack.iitp_connect.common.di.modules.android;

import com.firebase.ui.auth.KickoffActivity;
import com.firebase.ui.auth.ui.credentials.CredentialSaveActivity;
import com.firebase.ui.auth.ui.email.EmailActivity;
import com.firebase.ui.auth.ui.email.WelcomeBackPasswordPrompt;
import com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity;
import com.firebase.ui.auth.ui.idp.SingleSignInActivity;
import com.iitp.njack.iitp_connect.core.home.HomeActivity;
import com.iitp.njack.iitp_connect.core.calendar.detail.ContestDetailActivity;
import com.iitp.njack.iitp_connect.core.calendar.list.CodingCalendarActivity;
import com.iitp.njack.iitp_connect.core.profile.ProfileActivity;
import com.iitp.njack.iitp_connect.core.timetable.TimeTableActivity;

import dagger.Module;
import dagger.android.ContributesAndroidInjector;

@Module
public abstract class ActivityBuildersModule {
    @ContributesAndroidInjector
    abstract CodingCalendarActivity contributeCodingCalendarActivity();

    @ContributesAndroidInjector
    abstract ContestDetailActivity contributeContestDetailActivity();

    @ContributesAndroidInjector
    abstract HomeActivity contributeHomeActivity();

    @ContributesAndroidInjector
    abstract KickoffActivity contributeKickoffActivity();

    @ContributesAndroidInjector
    abstract EmailActivity contributeEmailActivity();

    @ContributesAndroidInjector
    abstract CredentialSaveActivity contributeCredentialSaveActivity();

    @ContributesAndroidInjector
    abstract WelcomeBackPasswordPrompt contributeWelcomeBackPasswordPrompt();

    @ContributesAndroidInjector
    abstract ProfileActivity contributeProfileActivity();

    @ContributesAndroidInjector
    abstract SingleSignInActivity contributeSingleSignInActivity();

    @ContributesAndroidInjector
    abstract AuthMethodPickerActivity contributeAuthMethodPickerActivity();

    @ContributesAndroidInjector
    abstract TimeTableActivity contributeTimeTableActivity();
}

@@ -395,32 +395,89 @@
 SignInActivity;%0A
+import com.firebase.ui.auth.ui.idp.WelcomeBackIdpPrompt;%0A
 import com.iitp.
@@ -1622,24 +1622,125 @@
 dPrompt();%0A%0A
+    @ContributesAndroidInjector%0A    abstract WelcomeBackIdpPrompt contributeWelcomeBackIdpPrompt();%0A%0A
     @Contrib

Fix crash on return of signed in user (#200)