Only show "Reverse order" if there is more than one active marker
Fixes issue #3290.
This commit is contained in:
parent
e4ab8372c5
commit
667efeed16
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue