src/test/java/de/blau/android/filter/TagFilterTest.java
/**
     * Insert a row in the tag filter DB
     * 
     * @param db a writable database
     * @param filter the filter name
     * @param active if this entry is active
     * @param include if the object should be included if it matches
     * @param type OSM element type
     * @param key the key
     * @param value the value
     */
Insert a row in the tag filter DB


Insert a row in the tag filter DB
private void insertTagFilterRow(SQLiteDatabase db, String filter, boolean active, boolean include, String type, String key, String value) {
        ContentValues values = new ContentValues();
        values.put("filter", filter);
        values.put("active", active ? 1 : 0);
        values.put("include", include ? 1 : 0);
        values.put("type", type);
        values.put("key", key);
        values.put("value", value);
        db.insert("filterentries", null, values);
    }
private void insertTagFilterRow ( SQLiteDatabase db , String filter , boolean active , boolean include , String type , String key , String value ) { ContentValues values = new ContentValues ( ) ; values . put ( "filter" , filter ) ; values . put ( "active" , active ? 1 : 0 ) ; values . put ( "include" , include ? 1 : 0 ) ; values . put ( "type" , type ) ; values . put ( "key" , key ) ; values . put ( "value" , value ) ; db . insert ( "filterentries" , null , values ) ; }
Insert a row in the tag filter DB
Insert a row in the tag filter DB