forked from upstream-mirrors/OpenTracks
Fix waypoint selection.
This commit is contained in:
@@ -528,7 +528,7 @@ public class ChartView extends View {
|
|||||||
if (nearestWaypoint != null && dmin < 100) {
|
if (nearestWaypoint != null && dmin < 100) {
|
||||||
Intent intent =
|
Intent intent =
|
||||||
new Intent(getContext(), WaypointDetails.class);
|
new Intent(getContext(), WaypointDetails.class);
|
||||||
intent.putExtra("waypointid", nearestWaypoint.getId());
|
intent.putExtra(WaypointDetails.WAYPOINT_ID_EXTRA, nearestWaypoint.getId());
|
||||||
getContext().startActivity(intent);
|
getContext().startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -461,7 +461,7 @@ public class MapOverlay extends Overlay {
|
|||||||
if (waypoint != null &&
|
if (waypoint != null &&
|
||||||
dmin < 15000000 / Math.pow(2, mapView.getZoomLevel())) {
|
dmin < 15000000 / Math.pow(2, mapView.getZoomLevel())) {
|
||||||
Intent intent = new Intent(context, WaypointDetails.class);
|
Intent intent = new Intent(context, WaypointDetails.class);
|
||||||
intent.putExtra("waypointid", waypoint.getId());
|
intent.putExtra(WaypointDetails.WAYPOINT_ID_EXTRA, waypoint.getId());
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user