use of io.jawg.osmcontributor.ui.adapters.TagsAdapter in project osm-contributor by jawg.
the class EditPoiFragment method onPoiForEditionLoadedEvent.
/*=========================================*/
/*------------------EVENTS-----------------*/
/*=========================================*/
@Subscribe(threadMode = ThreadMode.MAIN)
public void onPoiForEditionLoadedEvent(PoiForEditionLoadedEvent event) {
poi = event.getPoi();
// Set the poitype name in the action bar
ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
if (actionBar != null) {
actionBar.setSubtitle(poi.getType().getName());
}
Log.i(TAG, "onPoiForEditionLoadedEvent: " + poi);
tagsAdapter = new TagsAdapter(poi, tagItemList, getActivity(), event.getValuesMap(), sharedPreferences.getBoolean(getString(R.string.shared_prefs_expert_mode), false));
recyclerView.setAdapter(tagsAdapter);
}
Aggregations