Merge pull request #10979 from osmandapp/fix_waypoints_after_import_gpx
Adding unnamed waypoints to favorites
This commit is contained in:
commit
fc3ead429c
1 changed files with 4 additions and 1 deletions
|
@ -673,7 +673,10 @@ public class ImportHelper {
|
|||
public static List<FavouritePoint> asFavourites(OsmandApplication app, List<WptPt> wptPts, String fileName, boolean forceImportFavourites) {
|
||||
List<FavouritePoint> favourites = new ArrayList<>();
|
||||
for (WptPt p : wptPts) {
|
||||
if (p.name != null) {
|
||||
if (Algorithms.isEmpty(p.name)) {
|
||||
p.name = app.getResources().getString(R.string.shared_string_waypoint);
|
||||
}
|
||||
if (!Algorithms.isEmpty(p.name)) {
|
||||
final String fpCat;
|
||||
if (p.category == null) {
|
||||
if (forceImportFavourites) {
|
||||
|
|
Loading…
Reference in a new issue