Search in sources :

Example 1 with PleaseChangeToolbarColor

use of io.jawg.osmcontributor.ui.events.map.PleaseChangeToolbarColor 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()));
}
Also used : PleaseToggleDrawerLock(io.jawg.osmcontributor.ui.events.map.PleaseToggleDrawerLock) MapMode(io.jawg.osmcontributor.ui.utils.MapMode) PleaseChangeToolbarColor(io.jawg.osmcontributor.ui.events.map.PleaseChangeToolbarColor)

Aggregations

PleaseChangeToolbarColor (io.jawg.osmcontributor.ui.events.map.PleaseChangeToolbarColor)1 PleaseToggleDrawerLock (io.jawg.osmcontributor.ui.events.map.PleaseToggleDrawerLock)1 MapMode (io.jawg.osmcontributor.ui.utils.MapMode)1