package moe.banana.mmio;

import android.databinding.DataBindingUtil;
import android.support.v7.widget.RecyclerView;

import dagger.Component;
import dagger.Module;
import dagger.Provides;
import moe.banana.mmio.module.LayoutManagers;
import moe.banana.mmio.presenter.MainPresenter;
import moe.banana.mmio.scope.ActivityScope;
import moe.banana.mmio.view.MainViewModel;

@Module
public class MainActivity extends BaseActivity<MainPresenter> {

    @Provides
    @ActivityScope
    public MainViewModel provideViewModel() {
        return DataBindingUtil.setContentView(this, R.layout.activity_main);
    }

    @Provides
    @ActivityScope
    public RecyclerView.Adapter<?> provideAdapter() {
        return null; // TODO implement adapter...
    }

    @ActivityScope
    @Component(
            modules = {MainActivity.class, LayoutManagers.class},
            dependencies = {AppComponent.class})
    interface Controller {
        MainPresenter presenter();
    }

    @Override
    public MainPresenter createPresenter() {
        return DaggerMainActivity_Controller.builder()
                .appComponent(App.from(this))
                .mainActivity(this)
                .build()
                .presenter();
    }
}

@@ -66,55 +66,8 @@
 til;
-%0Aimport android.support.v7.widget.RecyclerView;
 %0A%0Aim
@@ -557,152 +557,8 @@
  %7D%0A%0A
-    @Provides%0A    @ActivityScope%0A    public RecyclerView.Adapter%3C?%3E provideAdapter() %7B%0A        return null; // TODO implement adapter...%0A    %7D%0A%0A
     

Remove unused binding method