mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
Fixing showing of waypoints
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user