Only show "Reverse order" if there is more than one active marker

Fixes issue #3290.
This commit is contained in:
njohnston 2016-11-24 21:43:12 +00:00
parent e4ab8372c5
commit 667efeed16

View file

@ -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( item = optionsMenu.getMenu().add(R.string.shared_string_reverse_order).setIcon(
iconsCache.getThemedIcon(R.drawable.ic_action_undo_dark)); iconsCache.getThemedIcon(R.drawable.ic_action_undo_dark));
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {