Compact database on clear

This commit is contained in:
M66B 2016-01-08 07:33:09 +01:00
parent 3b90625a82
commit 52ec25302f
1 changed files with 1 additions and 0 deletions

View File

@ -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)