package com.moac.android.opensecretsanta;

import android.accounts.AccountManager;
import android.content.Context;
import android.telephony.SmsManager;

import com.moac.android.opensecretsanta.activity.EditActivity;
import com.moac.android.opensecretsanta.activity.MainActivity;
import com.moac.android.opensecretsanta.activity.RestrictionsActivity;
import com.moac.android.opensecretsanta.database.DatabaseHelper;
import com.moac.android.opensecretsanta.database.DatabaseManager;
import com.moac.android.opensecretsanta.fragment.AssignmentFragment;
import com.moac.android.opensecretsanta.fragment.MemberEditFragment;
import com.moac.android.opensecretsanta.fragment.MemberListFragment;
import com.moac.android.opensecretsanta.fragment.NotifyDialogFragment;
import com.moac.android.opensecretsanta.fragment.NotifyExecutorFragment;
import com.moac.android.opensecretsanta.fragment.RestrictionsListFragment;
import com.moac.android.opensecretsanta.notify.mail.GmailSender;
import com.moac.android.opensecretsanta.notify.receiver.SmsSendReceiver;
import com.squareup.otto.Bus;

import javax.inject.Singleton;

import dagger.Provides;

@dagger.Module(
        injects = {
                NotifyExecutorFragment.class,
                NotifyDialogFragment.class},
        complete = false)
public class NotifyModule {

    private static final String TAG = NotifyModule.class.getSimpleName();
    private final Context mContext;

    public NotifyModule(Context context) {
        mContext = context;
    }

    @Provides
    SmsManager provideSmsManager() {
        return SmsManager.getDefault();
    }

    @Provides
    GmailSender provideGmailSender() {
        return new GmailSender();
    }

    @Provides
    @Singleton
    AccountManager provideAccountManager() {
        return AccountManager.get(mContext);
    }

}
package com.moac.android.opensecretsanta;

import android.accounts.AccountManager;
import android.content.Context;
import android.telephony.SmsManager;

import com.moac.android.opensecretsanta.fragment.NotifyDialogFragment;
import com.moac.android.opensecretsanta.fragment.NotifyExecutorFragment;
import com.moac.android.opensecretsanta.notify.mail.GmailSender;

import javax.inject.Singleton;

import dagger.Provides;

@dagger.Module(
        injects = {
                NotifyExecutorFragment.class,
                NotifyDialogFragment.class},
        complete = false)
public class NotifyModule {

    private static final String TAG = NotifyModule.class.getSimpleName();
    private final Context mContext;

    public NotifyModule(Context context) {
        mContext = context;
    }

    @Provides
    SmsManager provideSmsManager() {
        return SmsManager.getDefault();
    }

    @Provides
    GmailSender provideGmailSender() {
        return new GmailSender();
    }

    @Provides
    @Singleton
    AccountManager provideAccountManager() {
        return AccountManager.get(mContext);
    }

}
Remove unused imports