src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Check if a referenced relation member is deleted
     * 
     * @param r the Relation
     * @param rm the RelationMember
     * @return true if deleted
     */
Check if a referenced relation member is deleted

@param r the Relation
@param rm the RelationMember
@return true if deleted
Check if a referenced relation member is deleted @param r the Relation @param rm the RelationMember @return true if deleted
private boolean memberIsDeleted(@NonNull Relation r, @NonNull RelationMember rm) {
        OsmElement apiElement = apiStorage.getOsmElement(rm.getType(), rm.getRef());
        if (apiElement != null && apiElement.getState() == OsmElement.STATE_DELETED) {
            String debugString = "mergeData/applyOsc deleted " + rm.getType() + " in downloaded relation " + r.getOsmId();
            Log.e(DEBUG_TAG, debugString);
            ACRAHelper.nocrashReport(null, debugString);
            fixupBacklinks(); 
            return true; 
        }
        return false;
    }
private boolean memberIsDeleted ( @ NonNull Relation r , @ NonNull RelationMember rm ) { OsmElement apiElement = apiStorage . getOsmElement ( rm . getType ( ) , rm . getRef ( ) ) ; if ( apiElement != null && apiElement . getState ( ) == OsmElement . STATE_DELETED ) { String debugString = "mergeData/applyOsc deleted " + rm . getType ( ) + " in downloaded relation " + r . getOsmId ( ) ; Log . e ( DEBUG_TAG , debugString ) ; ACRAHelper . nocrashReport ( null , debugString ) ; fixupBacklinks ( ) ; return true ; } return false ; }
Check if a referenced relation member is deleted
Check if a referenced relation member is deleted
// nexessary as we've removed the original ones from the elements // can't resolve conflicts, upload first