src/main/java/de/blau/android/photos/PhotoIndex.java
/**
     * Add image to index
     * 
     * @param p the Photo object
     */
Add image to index

@param p the Photo object
Add image to index @param p the Photo object
public synchronized void addPhoto(@NonNull Photo p) {
        SQLiteDatabase db = getWritableDatabase();
        insertPhoto(db, p, p.getRef(), null);
        db.close();
        addToIndex(p);
    }
public synchronized void addPhoto ( @ NonNull Photo p ) { SQLiteDatabase db = getWritableDatabase ( ) ; insertPhoto ( db , p , p . getRef ( ) , null ) ; db . close ( ) ; addToIndex ( p ) ; }
Add image to index
Add image to index