package com.mobilization.yamblz_timeline.presentation.activity;

import com.mobilization.yamblz_timeline.domain.Event;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;

import com.mobilization.yamblz_timeline.R;
import com.mobilization.yamblz_timeline.presentation.di.App;
import com.mobilization.yamblz_timeline.presentation.di.modules.EventModule;
import com.mobilization.yamblz_timeline.presentation.di.modules.ScreenModule;
import com.mobilization.yamblz_timeline.presentation.mvp.presenter.SchedulePresenter;
import com.mobilization.yamblz_timeline.presentation.mvp.view.ScheduleView;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;

import butterknife.BindView;
import butterknife.Unbinder;

public class MainActivity extends AppCompatActivity implements ScheduleView {

    List<Event> mSchedule;
    @BindView(R.id.current_day) TextView mCurrentDay;
    @BindView(R.id.homework_deadline) TextView mHomeworkDeadline;
    @BindView(R.id.events_schedule) RecyclerView mEventsSchedule;
    Unbinder unbinder;

    @Inject
    SchedulePresenter mSchedulePresenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        App.getInstance().getAppComponent().plus(new EventModule()).plus(new ScreenModule()).inject(this);
        setContentView(R.layout.activity_main);

        mSchedulePresenter.getSchedule();
        mSchedule = new ArrayList<>();
        mEventsSchedule.setAdapter();
    }

    @Override
    protected void onResume() {
        super.onResume();
        mSchedulePresenter.bindView(this);
    }

    @Override
    public void showSchedule(List<Event> events) {
        for (Event event : events) {
            System.out.println(event.getTitle());
        }
    }
}

@@ -310,16 +310,91 @@
 line.R;%0A
+import com.mobilization.yamblz_timeline.presentation.adapter.EventAdapter;%0A
 import c
@@ -1271,24 +1271,57 @@
 Presenter;%0A%0A
+    EventAdapter mEventAdapter;%0A%0A
     @Overrid
@@ -1656,24 +1656,83 @@
 ayList%3C%3E();%0A
+        mEventAdapter = new EventAdapter(mSchedule, this);%0A
         mEve
@@ -1754,16 +1754,29 @@
 Adapter(
+mEventAdapter
 );%0A    %7D
@@ -1976,96 +1976,33 @@
     
-for (Event event : events) %7B%0A            System.out.println(event.getTitle());%0A        %7D
+mSchedule.addAll(events);
 %0A   

Set adapter for MainActivity