Shorten our menus by one more obsolete item

This commit is contained in:
sonora 2015-01-18 13:13:20 +01:00
parent a611a3afbc
commit fbec5a7125

View file

@ -879,7 +879,9 @@ public class MapActivityActions implements DialogProvider {
}).reg();
}
final OsmAndLocationProvider loc = app.getLocationProvider();
if (app.getTargetPointsHelper().getPointToNavigate() != null || loc.getLocationSimulation().isRouteAnimating()) {
// Shorten menus by showing this only to control ongoing simulation. Simulation start happens via Waypoint dialog.
//if (app.getTargetPointsHelper().getPointToNavigate() != null || loc.getLocationSimulation().isRouteAnimating()) {
if (app.getTargetPointsHelper().getPointToNavigate() != null && loc.getLocationSimulation().isRouteAnimating()) {
if (OsmandPlugin.getEnabledPlugin(OsmandDevelopmentPlugin.class) != null) {
optionsMenuHelper
.item(loc.getLocationSimulation().isRouteAnimating() ? R.string.animate_route_off : R.string.animate_route)