From 54c1dcfa6fe3f9968971142a6708e5f65070a342 Mon Sep 17 00:00:00 2001 From: rogere66 Date: Sun, 15 Apr 2012 22:56:42 +0300 Subject: [PATCH] Update OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java --- OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java index 0862268e4b..7062ee095c 100644 --- a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java @@ -81,7 +81,10 @@ public class FavouritesDbHelper extends SQLiteOpenHelper { WptPt pt = new WptPt(); pt.lat = p.getLatitude(); pt.lon = p.getLongitude(); - pt.name = p.getName() + "_" + p.getCategory(); + if (p.getCategory().length() > 0) + pt.name = p.getName() + "_" + p.getCategory(); + else + pt.name = p.getName(); gpx.points.add(pt); } }