Add default comment
This commit is contained in:
parent
ceb3973cfb
commit
8a1d8b83cb
1 changed files with 6 additions and 1 deletions
|
@ -117,7 +117,12 @@ public class OpenstreetmapsDbHelper extends SQLiteOpenHelper {
|
|||
}
|
||||
p.setEntity(entity);
|
||||
p.setAction(query.getString(3));
|
||||
p.setComment(query.getString(4));
|
||||
String comment = query.getString(4);
|
||||
if (comment.equals("")) {
|
||||
String action = OsmPoint.stringAction.get(p.getAction());
|
||||
comment = action.substring(0, 1).toUpperCase() + action.substring(1) + " " + entity.getTag("poi_type_tag");
|
||||
}
|
||||
p.setComment(comment);
|
||||
points.add(p);
|
||||
} while (query.moveToNext());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue