src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Insert a new element in to storage
     * 
     * Uses methods that are nops if the element already is present
     * 
     * @param elem the element to insert
     */
Insert a new element in to storage

Uses methods that are nops if the element already is present

@param elem the element to insert
Insert a new element in to storage Uses methods that are nops if the element already is present @param elem the element to insert
public synchronized void insertElementSafe(@NonNull final OsmElement elem) {
        dirty = true;
        undo.save(elem);
        try {
            currentStorage.insertElementSafe(elem);
            apiStorage.insertElementSafe(elem);
            onElementChanged((OsmElement) null, elem);
        } catch (StorageException e) {
            Log.e(DEBUG_TAG, "insertElementSafe got " + e.getMessage());
        }
    }
public synchronized void insertElementSafe ( @ NonNull final OsmElement elem ) { dirty = true ; undo . save ( elem ) ; try { currentStorage . insertElementSafe ( elem ) ; apiStorage . insertElementSafe ( elem ) ; onElementChanged ( ( OsmElement ) null , elem ) ; } catch ( StorageException e ) { Log . e ( DEBUG_TAG , "insertElementSafe got " + e . getMessage ( ) ) ; } }
Insert a new element in to storage
Insert a new element in to storage
// TODO handle OOM