From 667efeed168daade464b954d8d146ff5c18d7fcd Mon Sep 17 00:00:00 2001 From: njohnston Date: Thu, 24 Nov 2016 21:43:12 +0000 Subject: [PATCH] Only show "Reverse order" if there is more than one active marker Fixes issue #3290. --- OsmAnd/src/net/osmand/plus/helpers/MapMarkerDialogHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/MapMarkerDialogHelper.java b/OsmAnd/src/net/osmand/plus/helpers/MapMarkerDialogHelper.java index a93c49f9da..b36fce44fe 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/MapMarkerDialogHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/MapMarkerDialogHelper.java @@ -371,7 +371,7 @@ public class MapMarkerDialogHelper { } }); - if (!sorted) { + if (!sorted && markersHelper.getActiveMapMarkers().size() > 1) { item = optionsMenu.getMenu().add(R.string.shared_string_reverse_order).setIcon( iconsCache.getThemedIcon(R.drawable.ic_action_undo_dark)); item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {