mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-24 23:23:08 +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() {
|
||||
synchronized (mContext.getApplicationContext()) {
|
||||
SQLiteDatabase db = this.getReadableDatabase();
|
||||
db.delete("log", null, new String[]{});
|
||||
}
|
||||
|
||||
for (LogChangedListener listener : logChangedListeners)
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue