src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Create empty relation
     * 
     * @param members members to add without role
     * @return the new relation
     */
Create empty relation

@param members members to add without role
@return the new relation
Create empty relation @param members members to add without role @return the new relation
@NonNull
    public Relation createAndInsertRelation(@Nullable List<OsmElement> members) {
        dirty = true;
        Relation relation = factory.createRelationWithNewId();
        insertElementUnsafe(relation);
        if (members != null) {
            for (OsmElement e : members) {
                undo.save(e);
                RelationMember rm = new RelationMember("", e);
                relation.addMember(rm);
                e.addParentRelation(relation);
                onParentRelationChanged(e);
            }
        }
        return relation;
    }
@ NonNull public Relation createAndInsertRelation ( @ Nullable List < OsmElement > members ) { dirty = true ; Relation relation = factory . createRelationWithNewId ( ) ; insertElementUnsafe ( relation ) ; if ( members != null ) { for ( OsmElement e : members ) { undo . save ( e ) ; RelationMember rm = new RelationMember ( "" , e ) ; relation . addMember ( rm ) ; e . addParentRelation ( relation ) ; onParentRelationChanged ( e ) ; } } return relation ; }
Create empty relation
Create empty relation
// undo - nothing done here, way gets saved/marked on insert