From 1e2825bb1d8105b41058dc019423de3783d63c52 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 10 Jun 2013 08:26:32 +0200 Subject: [PATCH] suppress button --- .../net/osmand/plus/activities/IntermediatePointsDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java b/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java index 80f9089170..374d4e5b4b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java +++ b/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java @@ -110,7 +110,7 @@ public class IntermediatePointsDialog { openIntermediatePointsDialog(activity, app, true); } }); - } else { + } else if(intermediates.size()>1) { builder.setNeutralButton(R.string.intermediate_items_sort_by_distance, new Dialog.OnClickListener() { @Override public void onClick(DialogInterface d, int which) {