Commit d1e9af71 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Do not check existence here, could be redundant

parent 43e612df
......@@ -895,11 +895,9 @@ public class MediaDatabase {
* @param path
*/
public synchronized void addDir(String path) {
if (!mediaDirExists(path)) {
ContentValues values = new ContentValues();
values.put(DIR_ROW_PATH, path);
mDb.insert(DIR_TABLE_NAME, null, values);
}
ContentValues values = new ContentValues();
values.put(DIR_ROW_PATH, path);
mDb.insert(DIR_TABLE_NAME, null, values);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment