use of io.jawg.osmcontributor.ui.events.map.PleaseToggleDrawerLock in project osm-contributor by jawg.
the class MapFragment method switchToolbarMode.
private void switchToolbarMode(MapMode mode) {
MapMode.MapModeProperties properties = mode.getProperties();
confirm.setVisible(properties.isShowConfirmBtn());
filter.setVisible(FlavorUtils.hasFilter() && !properties.isLockDrawer());
toggleBackButton(properties.isMenuBtn());
getActivity().setTitle(properties.getTitle(getActivity()));
eventBus.post(new PleaseChangeToolbarColor(properties.isEditColor()));
eventBus.post(new PleaseToggleDrawerLock(properties.isLockDrawer()));
}
Aggregations