Fixing showing of waypoints

This commit is contained in:
Rodrigo Damazio
2012-01-05 19:42:06 -02:00
parent cfbb1b1634
commit 50095ad044
2 changed files with 2 additions and 2 deletions
@@ -364,7 +364,7 @@ public class MyTracks extends TabActivity implements OnTouchListener {
}
case Constants.SHOW_WAYPOINT: {
if (results != null) {
final long waypointId = results.getLongExtra("waypointid", -1);
final long waypointId = results.getLongExtra(WaypointDetails.WAYPOINT_ID_EXTRA, -1);
if (waypointId >= 0) {
MapActivity map =
(MapActivity) getLocalActivityManager().getActivity("tab1");
@@ -47,7 +47,7 @@ public class WaypointDetails extends Activity
public static final String WAYPOINT_ID_EXTRA = "com.google.android.apps.mytracks.WAYPOINT_ID";
/**
* The id of the way point being edited (taken from bundle, "waypointid")
* The id of the way point being edited (taken from bundle with the above name).
*/
private Long waypointId;