@Override public void showEvents(List<Event> eventList) { Log.e("showEvents", "estas en showEvents"); mEventsAdapter = new EventsAdapter(eventList); mEventsAdapter.setRecyclerlistListener(this); mRecycler.setAdapter(mEventsAdapter); }
private void initializeFromParams(Bundle savedInstanceState) { EventsWrapper eventsWrapper = (EventsWrapper) savedInstanceState.getSerializable(BUNDLE_EVENTS_WRAPPER); if (mEventsAdapter == null) { Log.e("mEventsAdapter", "mEventsAdapter es nulo"); } if (mEventsAdapter.getEventList() == null) { Log.e("mEventsAdapter", "mEventsAdapter es nulo"); } else { Log.e( "mEventsAdapter", "mEventsAdapter no es nulo " + mEventsAdapter.getEventList().get(0).getTitle()); } MainActivity.mEventsPresenter.onPopularEventsRecivrd(eventsWrapper); Log.e("initializeFromParams", "Se inicio nitializeFromParams"); }
@Override public void appendMovies(List<Event> eventList) { mEventsAdapter.appendEvent(eventList); }
@Override public boolean isTheListEmpety() { return (mEventsAdapter == null || mEventsAdapter.getEventList().isEmpty()); }