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

@param relation existing relation
@param members list of new RelationMembers
Add further RelationMembers to an existing relation @param relation existing relation @param members list of new RelationMembers
public void addRelationMembersToRelation(@NonNull Relation relation, @NonNull List<RelationMember> members) {
        dirty = true;
        undo.save(relation);
        validateRelationMemberCount(relation, members.size());
        for (RelationMember member : members) {
            if (member.downloaded()) {
                OsmElement e = member.getElement();
                undo.save(e);
                relation.addMember(member);
                e.addParentRelation(relation);
                onParentRelationChanged(e);
            } else {
                relation.addMember(member);
            }
        }
        relation.updateState(OsmElement.STATE_MODIFIED);
        insertElementSafe(relation);
    }
public void addRelationMembersToRelation ( @ NonNull Relation relation , @ NonNull List < RelationMember > members ) { dirty = true ; undo . save ( relation ) ; validateRelationMemberCount ( relation , members . size ( ) ) ; for ( RelationMember member : members ) { if ( member . downloaded ( ) ) { OsmElement e = member . getElement ( ) ; undo . save ( e ) ; relation . addMember ( member ) ; e . addParentRelation ( relation ) ; onParentRelationChanged ( e ) ; } else { relation . addMember ( member ) ; } } relation . updateState ( OsmElement . STATE_MODIFIED ) ; insertElementSafe ( relation ) ; }
Add further RelationMembers to an existing relation
Add further RelationMembers to an existing relation