Search in sources :

Example 1 with Logger

use of org.fossasia.openevent.app.common.rx.Logger in project open-event-orga-app by fossasia.

the class MainPresenter method showLoadedEvent.

private void showLoadedEvent(long storedEventId) {
    getView().setEventId(storedEventId);
    Event staticEvent = ContextManager.getSelectedEvent();
    if (staticEvent != null) {
        getView().showResult(staticEvent);
        if (!isRotated())
            showEvent(staticEvent);
        return;
    }
    eventRepository.getEvent(storedEventId, false).compose(dispose(getDisposable())).compose(erroneous(getView())).subscribe(bus::pushSelectedEvent, Logger::logError);
}
Also used : Event(org.fossasia.openevent.app.data.models.Event) Logger(org.fossasia.openevent.app.common.rx.Logger)

Aggregations

Logger (org.fossasia.openevent.app.common.rx.Logger)1 Event (org.fossasia.openevent.app.data.models.Event)1