Keep Settings together
This commit is contained in:
parent
f18dbdc5d9
commit
7d35f193a0
1 changed files with 20 additions and 21 deletions
|
@ -859,6 +859,16 @@ public class MapActivityActions implements DialogProvider {
|
|||
}).reg();
|
||||
|
||||
|
||||
optionsMenuHelper.item(R.string.show_point_options)
|
||||
.icons(R.drawable.ic_action_marker_dark, R.drawable.ic_action_marker_light)
|
||||
.listen(new OnContextMenuClick() {
|
||||
@Override
|
||||
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
|
||||
contextMenuPoint(mapView.getLatitude(), mapView.getLongitude());
|
||||
return true;
|
||||
}
|
||||
}).reg();
|
||||
|
||||
optionsMenuHelper.item(R.string.configure_map).icons(R.drawable.ic_action_layers_dark, R.drawable.ic_action_layers_light)
|
||||
.listen(new OnContextMenuClick() {
|
||||
@Override
|
||||
|
@ -869,13 +879,12 @@ public class MapActivityActions implements DialogProvider {
|
|||
}
|
||||
}).reg();
|
||||
|
||||
optionsMenuHelper.item(R.string.show_point_options)
|
||||
.icons(R.drawable.ic_action_marker_dark, R.drawable.ic_action_marker_light)
|
||||
optionsMenuHelper.item(R.string.layer_map_appearance).icons(R.drawable.ic_configure_screen_dark, R.drawable.ic_configure_screen_light)
|
||||
.listen(new OnContextMenuClick() {
|
||||
@Override
|
||||
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
|
||||
contextMenuPoint(mapView.getLatitude(), mapView.getLongitude());
|
||||
return true;
|
||||
prepareConfigureScreen();
|
||||
return false;
|
||||
}
|
||||
}).reg();
|
||||
|
||||
|
@ -890,16 +899,6 @@ public class MapActivityActions implements DialogProvider {
|
|||
}
|
||||
}).reg();
|
||||
|
||||
optionsMenuHelper.item(R.string.layer_map_appearance).icons(R.drawable.ic_configure_screen_dark, R.drawable.ic_configure_screen_light)
|
||||
.listen(new OnContextMenuClick() {
|
||||
@Override
|
||||
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
|
||||
prepareConfigureScreen();
|
||||
return false;
|
||||
}
|
||||
}).reg();
|
||||
|
||||
|
||||
//////////// Others
|
||||
final OsmAndLocationProvider loc = app.getLocationProvider();
|
||||
// this is development functionality so it should stay preferrably here
|
||||
|
|
Loading…
Reference in a new issue