Fix #2834 Case 2
This commit is contained in:
parent
1f080ba2e3
commit
609c3f12db
1 changed files with 5 additions and 2 deletions
|
@ -251,8 +251,11 @@ public class SelectedGPXFragment extends OsmAndListFragment {
|
||||||
FavouritesDbHelper fdb = app.getFavorites();
|
FavouritesDbHelper fdb = app.getFavorites();
|
||||||
for(GpxDisplayItem i : modifiableList) {
|
for(GpxDisplayItem i : modifiableList) {
|
||||||
if (i.locationStart != null) {
|
if (i.locationStart != null) {
|
||||||
FavouritePoint fp = new FavouritePoint(i.locationStart.lat, i.locationStart.lon, i.name,
|
String description = (i.description != null) ? i.description : "" ;
|
||||||
category);
|
FavouritePoint fp = new FavouritePoint(i.locationStart.lat, i.locationStart.lon, i.name, category);
|
||||||
|
if (!"".equals(description)) {
|
||||||
|
fp.setDescription(description);
|
||||||
|
}
|
||||||
fdb.addFavourite(fp, false);
|
fdb.addFavourite(fp, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue