mirror of https://github.com/M66B/NetGuard.git
Compact database on clear
This commit is contained in:
parent
3b90625a82
commit
52ec25302f
|
@ -107,6 +107,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
|||
synchronized (mContext.getApplicationContext()) {
|
||||
SQLiteDatabase db = this.getReadableDatabase();
|
||||
db.delete("log", null, new String[]{});
|
||||
db.execSQL("VACUUM");
|
||||
}
|
||||
|
||||
for (LogChangedListener listener : logChangedListeners)
|
||||
|
|
Loading…
Reference in New Issue