src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Add further members without role to an existing relation
     * 
     * @param relation existing relation
     * @param members list of new members
     */
Add further members without role to an existing relation

@param relation existing relation
@param members list of new members
Add further members without role to an existing relation @param relation existing relation @param members list of new members
public void addMembersToRelation(@NonNull Relation relation, @NonNull List<OsmElement> members) {
        dirty = true;
        undo.save(relation);
        validateRelationMemberCount(relation, members.size());
        for (OsmElement e : members) {
            undo.save(e);
            RelationMember rm = new RelationMember("", e);
            relation.addMember(rm);
            e.addParentRelation(relation);
            onParentRelationChanged(e);
        }
        relation.updateState(OsmElement.STATE_MODIFIED);
        insertElementSafe(relation);
    }
public void addMembersToRelation ( @ NonNull Relation relation , @ NonNull List < OsmElement > members ) { dirty = true ; undo . save ( relation ) ; validateRelationMemberCount ( relation , members . size ( ) ) ; for ( OsmElement e : members ) { undo . save ( e ) ; RelationMember rm = new RelationMember ( "" , e ) ; relation . addMember ( rm ) ; e . addParentRelation ( relation ) ; onParentRelationChanged ( e ) ; } relation . updateState ( OsmElement . STATE_MODIFIED ) ; insertElementSafe ( relation ) ; }
Add further members without role to an existing relation
Add further members without role to an existing relation