Merge pull request #9488 from osmandapp/Fix_9340

Fix #9340
This commit is contained in:
Vitaliy 2020-07-20 19:20:33 +03:00 committed by GitHub
commit 3b1b54968d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}