mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-25 07:32:46 +00:00
Synchronize clear
This commit is contained in:
parent
137e440bea
commit
071f50b9e5
1 changed files with 4 additions and 2 deletions
|
@ -83,8 +83,10 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public DatabaseHelper clear() {
|
public DatabaseHelper clear() {
|
||||||
|
synchronized (mContext.getApplicationContext()) {
|
||||||
SQLiteDatabase db = this.getReadableDatabase();
|
SQLiteDatabase db = this.getReadableDatabase();
|
||||||
db.delete("log", null, new String[]{});
|
db.delete("log", null, new String[]{});
|
||||||
|
}
|
||||||
|
|
||||||
for (LogChangedListener listener : logChangedListeners)
|
for (LogChangedListener listener : logChangedListeners)
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue