This commit is contained in:
Nazar-Kutz 2020-07-20 19:13:41 +03:00
parent 9a7aca7cb7
commit 53eb9f8123

View file

@ -622,7 +622,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements
FavouritesDbHelper fdb = app.getFavorites();
for (GpxDisplayItem i : getSelectedItems()) {
if (i.locationStart != null) {
FavouritePoint fp = new FavouritePoint(i.locationStart.lat, i.locationStart.lon, i.name, editText.getText().toString());
FavouritePoint fp = FavouritePoint.fromWpt(i.locationStart, app);
if (!Algorithms.isEmpty(i.description)) {
fp.setDescription(i.description);
}