// Path: mvpseed/src/main/java/com/sdwfqin/mvpseed/di/module/ActivityModule.java
// @Module
// public class ActivityModule {
//     private Activity mActivity;
// 
//     public ActivityModule(Activity activity) {
//         this.mActivity = activity;
//     }
// 
//     @Provides
//     @ActivityScope
//     public Activity provideActivity() {
//         return mActivity;
//     }
// }


import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.sdwfqin.mvpseed.di.component.ActivityComponent;
import com.sdwfqin.mvpseed.di.component.DaggerActivityComponent;
import com.sdwfqin.mvpseed.di.module.ActivityModule;
import javax.inject.Inject;
import butterknife.ButterKnife;
import butterknife.Unbinder;
package com.sdwfqin.mvpseed.base;





/**
 * 描述：Activity的基类
 *
 * @author zhangqin
 * @date 2017/6/9
 */
public abstract class BaseActivity<T extends BasePresenter> extends AppCompatActivity implements BaseView {

    @Inject
    protected T mPresenter;

    protected Activity mContext;
    private Unbinder mUnBinder;

    protected ActivityComponent getActivityComponent() {
        return DaggerActivityComponent.builder()
                .appComponent(App.getAppComponent())
                .activityModule(getActivityModule())
                .build();
    }

// Path: mvpseed/src/main/java/com/sdwfqin/mvpseed/di/module/ActivityModule.java
// @Module
// public class ActivityModule {
//     private Activity mActivity;
// 
//     public ActivityModule(Activity activity) {
//         this.mActivity = activity;
//     }
// 
//     @Provides
//     @ActivityScope
//     public Activity provideActivity() {
//         return mActivity;
//     }
// }


// Path: mvpseed/src/main/java/com/sdwfqin/mvpseed/base/BaseActivity.java
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.sdwfqin.mvpseed.di.component.ActivityComponent;
import com.sdwfqin.mvpseed.di.component.DaggerActivityComponent;
import com.sdwfqin.mvpseed.di.module.ActivityModule;
import javax.inject.Inject;
import butterknife.ButterKnife;
import butterknife.Unbinder;

package com.sdwfqin.mvpseed.base;





/**
 * 描述：Activity的基类
 *
 * @author zhangqin
 * @date 2017/6/9
 */
public abstract class BaseActivity<T extends BasePresenter> extends AppCompatActivity implements BaseView {

    @Inject
    protected T mPresenter;

    protected Activity mContext;
    private Unbinder mUnBinder;

    protected ActivityComponent getActivityComponent() {
        return DaggerActivityComponent.builder()
                .appComponent(App.getAppComponent())
                .activityModule(getActivityModule())
                .build();
    }

    protected ActivityModule getActivityModule() {