1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-02-24 23:23:08 +00:00

Synchronize clear

This commit is contained in:
M66B 2016-01-07 06:41:12 +01:00
parent 137e440bea
commit 071f50b9e5

View file

@ -83,8 +83,10 @@ public class DatabaseHelper extends SQLiteOpenHelper {
}
public DatabaseHelper clear() {
SQLiteDatabase db = this.getReadableDatabase();
db.delete("log", null, new String[]{});
synchronized (mContext.getApplicationContext()) {
SQLiteDatabase db = this.getReadableDatabase();
db.delete("log", null, new String[]{});
}
for (LogChangedListener listener : logChangedListeners)
try {