forked from upstream-mirrors/OpenTracks
Add a few calls back into SendToMyMaps which actually add the stats to the ending waypoint. (imported from perforce)
This commit is contained in:
@@ -662,6 +662,7 @@ public class SendToMyMaps {
|
|||||||
+ (isStart ? context.getString(R.string.start)
|
+ (isStart ? context.getString(R.string.start)
|
||||||
: context.getString(R.string.end));
|
: context.getString(R.string.end));
|
||||||
myMapsFeature.setTitle(name);
|
myMapsFeature.setTitle(name);
|
||||||
|
myMapsFeature.setDescription(isStart ? "" : track.getDescription());
|
||||||
return myMapsFeature;
|
return myMapsFeature;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -684,6 +685,7 @@ public class SendToMyMaps {
|
|||||||
} else {
|
} else {
|
||||||
myMapsFeature.setTitle(wpt.getName());
|
myMapsFeature.setTitle(wpt.getName());
|
||||||
}
|
}
|
||||||
|
myMapsFeature.setDescription(wpt.getDescription().replaceAll("\n", "<br>"));
|
||||||
return myMapsFeature;
|
return myMapsFeature;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user