src/main/java/de/blau/android/photos/PhotoIndex.java
/**
     * Update a source record
     * 
     * @param db a writable database
     * @param source the source to update
     * @param tag the tag
     * @param lastScan the time of last scan
     */
Update a source record

@param db a writable database
@param source the source to update
@param tag the tag
@param lastScan the time of last scan
Update a source record @param db a writable database @param source the source to update @param tag the tag @param lastScan the time of last scan
private void updateSources(@NonNull SQLiteDatabase db, @NonNull String source, @Nullable String tag, long lastScan) {
        Log.d(DEBUG_TAG, "updating " + source + " to scan " + lastScan + " tag " + tag);
        ContentValues lastVersion = new ContentValues();
        lastVersion.put(TAG_COLUMN, tag);
        lastVersion.put(LAST_SCAN_COLUMN, lastScan);
        db.update(SOURCES_TABLE, lastVersion, URI_WHERE, new String[] { source });
    }
private void updateSources ( @ NonNull SQLiteDatabase db , @ NonNull String source , @ Nullable String tag , long lastScan ) { Log . d ( DEBUG_TAG , "updating " + source + " to scan " + lastScan + " tag " + tag ) ; ContentValues lastVersion = new ContentValues ( ) ; lastVersion . put ( TAG_COLUMN , tag ) ; lastVersion . put ( LAST_SCAN_COLUMN , lastScan ) ; db . update ( SOURCES_TABLE , lastVersion , URI_WHERE , new String [ ] { source } ) ; }
Update a source record
Update a source record