use of io.jawg.osmcontributor.ui.events.type.PoiTypeDeletedEvent in project osm-contributor by jawg.
the class TypeManager method onInternalRemovePoiTypeEvent.
@Subscribe(threadMode = ThreadMode.ASYNC)
public void onInternalRemovePoiTypeEvent(InternalRemovePoiTypeEvent event) {
PoiType poiType = event.getPoiType();
poiManager.deletePoiType(poiType);
Timber.i("Removed poi type %d", poiType.getId());
bus.post(new PoiTypeDeletedEvent(poiType));
bus.post(new PoiTypesLoaded(poiManager.getPoiTypesSortedByName()));
}
Aggregations