diff --git a/OsmAnd/res/layout/waypoint_header.xml b/OsmAnd/res/layout/waypoint_header.xml
index e44290f6b7..b96f9fbafb 100644
--- a/OsmAnd/res/layout/waypoint_header.xml
+++ b/OsmAnd/res/layout/waypoint_header.xml
@@ -13,14 +13,7 @@
android:ellipsize="end"
android:layout_gravity="center_vertical"
android:layout_weight="1"
- android:textSize="18sp"/>
-
-
+ android:textSize="22sp"/>
+
\ No newline at end of file
diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index 341357f091..426b1a206e 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -9,6 +9,10 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
+ All
+ Waypoints
+ Targets
+ Obstacles
Announce Favorites
Announce POI
Download missing maps %1$s (%2$d MB)?
diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java
index a2d16692d5..3a71d19e42 100644
--- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java
+++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java
@@ -835,8 +835,7 @@ public class MapActivityActions implements DialogProvider {
@Override
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
if (getMyApplication().getWaypointHelper().isRouteCalculated()) {
- WaypointDialogHelper.showWaypointsDialog(getMyApplication(), mapActivity,
- getMyApplication().getWaypointHelper().getAllPoints());
+ WaypointDialogHelper.showWaypointsDialog(getMyApplication(), mapActivity);
} else {
openIntermediatePointsDialog();
}
diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java
index 8ee7a952d8..f25dcb7ae6 100644
--- a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java
+++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java
@@ -23,12 +23,14 @@ import android.content.DialogInterface.OnClickListener;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.SystemClock;
+import android.util.TypedValue;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
+import android.widget.CompoundButton;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
@@ -46,6 +48,7 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
public final static boolean OVERLAP_LAYOUT = true; // only true is supported
private View closePointDialog;
private List many = new ArrayList();
+ private static AlertDialog dialog;
public WaypointDialogHelper(MapActivity mapActivity) {
@@ -92,7 +95,7 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
all.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
- showWaypointsDialog(app, mapActivity, waypointHelper.getAllPoints());
+ showWaypointsDialog(app, mapActivity);
}
});
@@ -130,7 +133,7 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
int dist = wh.getRouteDistance(ps);
String dd = OsmAndFormatter.getFormattedDistance(dist, app);
if (ps.deviationDistance > 0) {
- dd += "\n " + OsmAndFormatter.getFormattedDistance(ps.deviationDistance, app);
+ dd += "\n+" + OsmAndFormatter.getFormattedDistance(ps.deviationDistance, app);
}
textDist.setText(dd);
text.setText(point.getName(app));
@@ -187,12 +190,126 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
}.execute(reachedView);
}
+ private static void enableType(OsmandApplication app, MapActivity ctx, int type) {
+ // TODO Auto-generated method stub
+ }
- public static void showWaypointsDialog(final OsmandApplication app, final MapActivity ctx, final List visibleLocationPoints){
+ public static void showWaypointsDialog(final OsmandApplication app,
+ final MapActivity ctx) {
+ final WaypointHelper waypointHelper = app.getWaypointHelper();
+ final List