Fix #8726
This commit is contained in:
parent
561b8bce94
commit
9d5dc7e4d3
1 changed files with 8 additions and 0 deletions
|
@ -105,6 +105,8 @@ public class ExternalApiHelper {
|
|||
public static final String PARAM_CATEGORY = "category";
|
||||
public static final String PARAM_LAT = "lat";
|
||||
public static final String PARAM_LON = "lon";
|
||||
public static final String PARAM_MAP_LAT = "map_lat";
|
||||
public static final String PARAM_MAP_LON = "map_lon";
|
||||
public static final String PARAM_COLOR = "color";
|
||||
public static final String PARAM_VISIBLE = "visible";
|
||||
|
||||
|
@ -445,6 +447,12 @@ public class ExternalApiHelper {
|
|||
result.putExtra(PARAM_LON, location.getLongitude());
|
||||
}
|
||||
|
||||
LatLon mapLocation = mapActivity.getMapLocation();
|
||||
if (location != null) {
|
||||
result.putExtra(PARAM_MAP_LAT, mapLocation.getLatitude());
|
||||
result.putExtra(PARAM_MAP_LON, mapLocation.getLongitude());
|
||||
}
|
||||
|
||||
final RoutingHelper routingHelper = app.getRoutingHelper();
|
||||
if (routingHelper.isRouteCalculated()) {
|
||||
int time = routingHelper.getLeftTime();
|
||||
|
|
Loading…
Reference in a new issue