use of io.jawg.osmcontributor.model.events.PoisAndNotesDownloadedEvent in project osm-contributor by jawg.
the class SyncManager method onSyncDownloadPoisAndNotesEvent.
// ********************************
// ************ Events ************
// ********************************
@Subscribe(threadMode = ThreadMode.ASYNC)
public void onSyncDownloadPoisAndNotesEvent(SyncDownloadPoisAndNotesEvent event) {
syncDownloadPoiBox(event.getBox());
List<Note> notes = syncNoteManager.syncDownloadNotesInBox(event.getBox());
if (notes != null && notes.size() > 0) {
noteManager.mergeBackendNotes(notes);
}
bus.post(new PoisAndNotesDownloadedEvent());
}
Aggregations