src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Add new member to relation at end
     * 
     * @param newMember member to add
     * @param rel target relation
     */
Add new member to relation at end

@param newMember member to add
@param rel target relation
Add new member to relation at end @param newMember member to add @param rel target relation
public void addMemberToRelation(@NonNull final RelationMember newMember, @NonNull final Relation rel) {
        OsmElement e = newMember.getElement();
        if (e == null) {
            Log.e(DEBUG_TAG, "addElementToRelation element not found");
            return;
        }
        dirty = true;
        undo.save(rel);
        undo.save(e);
        validateRelationMemberCount(rel, 1);
        rel.addMember(newMember);
        e.addParentRelation(rel);
        rel.updateState(OsmElement.STATE_MODIFIED);
        apiStorage.insertElementSafe(rel);
        onElementChanged(null, rel);
        onParentRelationChanged(e);
    }
public void addMemberToRelation ( @ NonNull final RelationMember newMember , @ NonNull final Relation rel ) { OsmElement e = newMember . getElement ( ) ; if ( e == null ) { Log . e ( DEBUG_TAG , "addElementToRelation element not found" ) ; return ; } dirty = true ; undo . save ( rel ) ; undo . save ( e ) ; validateRelationMemberCount ( rel , 1 ) ; rel . addMember ( newMember ) ; e . addParentRelation ( rel ) ; rel . updateState ( OsmElement . STATE_MODIFIED ) ; apiStorage . insertElementSafe ( rel ) ; onElementChanged ( null , rel ) ; onParentRelationChanged ( e ) ; }
Add new member to relation at end
Add new member to relation at end