package keijumt.devandroid.activity import android.arch.lifecycle.ViewModelProvider import android.support.v4.app.Fragment import android.support.v7.app.AppCompatActivity import dagger.android.AndroidInjector import dagger.android.DispatchingAndroidInjector import dagger.android.support.HasSupportFragmentInjector import keijumt.devandroid.di.Injectable import javax.inject.Inject /** * Activityの基底クラス */ abstract class BaseActivity : AppCompatActivity(), HasSupportFragmentInjector, Injectable { @Inject lateinit var viewModelFactory: ViewModelProvider.Factory @Inject lateinit var androidInjector: DispatchingAndroidInjector<Fragment> override fun supportFragmentInjector(): AndroidInjector<Fragment> { return androidInjector } }