Merge pull request #3297 from njohnston/marker_reverse_menu_item_fix

Only show "Reverse order" if there is more than one active marker
This commit is contained in:
Hardy 2016-11-25 01:20:14 +01:00 committed by GitHub
commit d9563786f7

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(
iconsCache.getThemedIcon(R.drawable.ic_action_undo_dark));
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {