src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Replace a member way with a different one
     * 
     * @param r the Relation
     * @param rm the original ReleationMember
     * @param way original member way
     * @param newWay new member way
     */
Replace a member way with a different one

@param r the Relation
@param rm the original ReleationMember
@param way original member way
@param newWay new member way
Replace a member way with a different one @param r the Relation @param rm the original ReleationMember @param way original member way @param newWay new member way
private void replaceMemberWay(@NonNull Relation r, @NonNull RelationMember rm, @NonNull final Way way, @NonNull Way newWay) {
        RelationMember newMember = new RelationMember(rm.getRole(), newWay);
        r.replaceMember(rm, newMember);
        way.removeParentRelation(r); 
        newWay.addParentRelation(r);
    }
private void replaceMemberWay ( @ NonNull Relation r , @ NonNull RelationMember rm , @ NonNull final Way way , @ NonNull Way newWay ) { RelationMember newMember = new RelationMember ( rm . getRole ( ) , newWay ) ; r . replaceMember ( rm , newMember ) ; way . removeParentRelation ( r ) ; newWay . addParentRelation ( r ) ; }
Replace a member way with a different one
Replace a member way with a different one
// remove way from relation, add newWay to it // way is dirty and will be changed anyway