cleanup the event meta info at event deletion too

This commit is contained in:
tibbi 2016-09-11 11:15:53 +02:00
parent 6780f6f250
commit 7ea9e214b1

View File

@ -127,6 +127,9 @@ public class DBHelper extends SQLiteOpenHelper {
final String selection = COL_ID + " IN (" + args + ")";
mDb.delete(MAIN_TABLE_NAME, selection, null);
final String metaSelection = COL_EVENT_ID + " IN (" + args + ")";
mDb.delete(META_TABLE_NAME, metaSelection, null);
if (mCallback != null)
mCallback.eventsDeleted(ids.length);
}