From a8c9f060b2f372ce5592af8c79660d5ff13b49db Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 29 Oct 2014 13:06:32 +0100 Subject: [PATCH] better group settings items in drawer --- .../plus/activities/MapActivityActions.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 552935d31a..ca43faefd5 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -719,14 +719,6 @@ public class MapActivityActions implements DialogProvider { } // 5-9. Default actions (Layers, Configure Map screen, Settings, Search, Favorites) - optionsMenuHelper.item(R.string.configure_map).icons(R.drawable.ic_action_layers_dark, R.drawable.ic_action_layers_light) - .listen(new OnContextMenuClick() { - @Override - public boolean onContextMenuClick(ArrayAdapter adapter, int itemId, int pos, boolean isChecked) { - prepareConfigureMap(); - return false; - } - }).reg(); optionsMenuHelper.item(R.string.search_button) .icons(R.drawable.ic_action_search_dark, R.drawable.ic_action_search_light) .listen(new OnContextMenuClick() { @@ -765,6 +757,15 @@ public class MapActivityActions implements DialogProvider { } }).reg(); + optionsMenuHelper.item(R.string.configure_map).icons(R.drawable.ic_action_layers_dark, R.drawable.ic_action_layers_light) + .listen(new OnContextMenuClick() { + @Override + public boolean onContextMenuClick(ArrayAdapter adapter, int itemId, int pos, boolean isChecked) { + prepareConfigureMap(); + return false; + } + }).reg(); + optionsMenuHelper.item(R.string.layer_map_appearance).icons(R.drawable.ic_action_settings_dark, R.drawable.ic_action_settings_light) .listen(new OnContextMenuClick() { @Override