fix development

This commit is contained in:
Victor Shcherb 2015-01-18 21:02:07 +01:00
parent 88823e706a
commit 486464e045

View file

@ -900,9 +900,7 @@ public class MapActivityActions implements DialogProvider {
}).reg(); }).reg();
} }
final OsmAndLocationProvider loc = app.getLocationProvider(); final OsmAndLocationProvider loc = app.getLocationProvider();
// Shorten menus by showing this only to control ongoing simulation. Simulation start happens via Waypoint dialog. // this is development functionality so it should stay preferrably here
//if (app.getTargetPointsHelper().getPointToNavigate() != null || loc.getLocationSimulation().isRouteAnimating()) {
if (app.getTargetPointsHelper().getPointToNavigate() != null && loc.getLocationSimulation().isRouteAnimating()) {
if (OsmandPlugin.getEnabledPlugin(OsmandDevelopmentPlugin.class) != null) { if (OsmandPlugin.getEnabledPlugin(OsmandDevelopmentPlugin.class) != null) {
optionsMenuHelper optionsMenuHelper
.item(loc.getLocationSimulation().isRouteAnimating() ? R.string.animate_route_off : R.string.animate_route) .item(loc.getLocationSimulation().isRouteAnimating() ? R.string.animate_route_off : R.string.animate_route)
@ -917,7 +915,6 @@ public class MapActivityActions implements DialogProvider {
} }
}).reg(); }).reg();
} }
}
OsmandPlugin.registerOptionsMenu(mapActivity, optionsMenuHelper); OsmandPlugin.registerOptionsMenu(mapActivity, optionsMenuHelper);
optionsMenuHelper.item(R.string.exit_Button).icons(R.drawable.ic_action_quit_dark, R.drawable.ic_action_quit_light ) optionsMenuHelper.item(R.string.exit_Button).icons(R.drawable.ic_action_quit_dark, R.drawable.ic_action_quit_light )