use of org.fossasia.openevent.common.events.EventLoadedEvent in project open-event-android by fossasia.
the class MainActivity method syncComplete.
private void syncComplete() {
String successMessage = "Data loaded from JSON";
if (fromServer) {
// Event successfully loaded, set data downloaded to true
SharedPreferencesUtil.putBoolean(ConstantStrings.IS_DOWNLOAD_DONE, true);
successMessage = "Download done";
}
Snackbar.make(mainFrame, getString(R.string.download_complete), Snackbar.LENGTH_SHORT).show();
Timber.d(successMessage);
setupEvent();
StrategyRegistry.getInstance().getEventBusStrategy().postEventOnUIThread(new EventLoadedEvent(event));
saveEventDates(event);
storeFeedDetails();
}
Aggregations