use of com.eventyay.organizer.data.Bus in project open-event-orga-app by fossasia.
the class EventViewModel method showLoadedEvent.
private void showLoadedEvent(long storedEventId) {
eventId.setValue(storedEventId);
Event staticEvent = ContextManager.getSelectedEvent();
if (staticEvent != null) {
selectedEvent.setValue(staticEvent);
showEventDashboard();
return;
}
compositeDisposable.add(eventRepository.getEvent(storedEventId, false).subscribe(bus::pushSelectedEvent, throwable -> {
Logger.logError(throwable);
error.setValue(throwable.getMessage());
}));
}
Aggregations