src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Remove the references to downloaded elements from parent Relations
     * 
     * @param logic the current Logic instance or null, this is required because elements may be members of selected
     *            relations
     * @param e the OsmElement we want to remove references for
     */
Remove the references to downloaded elements from parent Relations

@param logic the current Logic instance or null, this is required because elements may be members of selected
relations
@param e the OsmElement we want to remove references for
Remove the references to downloaded elements from parent Relations @param logic the current Logic instance or null this is required because elements may be members of selected relations @param e the OsmElement we want to remove references for
private void removeReferenceFromParents(@Nullable Logic logic, @NonNull OsmElement e) {
        List<Relation> parents = e.getParentRelations();
        if (parents != null) {
            for (Relation parent : parents) { 
                List<RelationMember> members = parent.getAllMembers(e);
                for (RelationMember member : members) {
                    member.setElement(null);
                }
            }
            if (logic != null) {
                logic.removeSelectedRelationElement(e);
            }
        }
    }
private void removeReferenceFromParents ( @ Nullable Logic logic , @ NonNull OsmElement e ) { List < Relation > parents = e . getParentRelations ( ) ; if ( parents != null ) { for ( Relation parent : parents ) { List < RelationMember > members = parent . getAllMembers ( e ) ; for ( RelationMember member : members ) { member . setElement ( null ) ; } } if ( logic != null ) { logic . removeSelectedRelationElement ( e ) ; } } }
Remove the references to downloaded elements from parent Relations
Remove the references to downloaded elements from parent Relations
// remove link from parent relations