forked from upstream-mirrors/OpenTracks
Fixing showing of waypoints
This commit is contained in:
@@ -364,7 +364,7 @@ public class MyTracks extends TabActivity implements OnTouchListener {
|
|||||||
}
|
}
|
||||||
case Constants.SHOW_WAYPOINT: {
|
case Constants.SHOW_WAYPOINT: {
|
||||||
if (results != null) {
|
if (results != null) {
|
||||||
final long waypointId = results.getLongExtra("waypointid", -1);
|
final long waypointId = results.getLongExtra(WaypointDetails.WAYPOINT_ID_EXTRA, -1);
|
||||||
if (waypointId >= 0) {
|
if (waypointId >= 0) {
|
||||||
MapActivity map =
|
MapActivity map =
|
||||||
(MapActivity) getLocalActivityManager().getActivity("tab1");
|
(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";
|
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;
|
private Long waypointId;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user