mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-04-24 14:48:42 +02:00
cleanup the event meta info at event deletion too
This commit is contained in:
parent
6780f6f250
commit
7ea9e214b1
@ -127,6 +127,9 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
final String selection = COL_ID + " IN (" + args + ")";
|
final String selection = COL_ID + " IN (" + args + ")";
|
||||||
mDb.delete(MAIN_TABLE_NAME, selection, null);
|
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)
|
if (mCallback != null)
|
||||||
mCallback.eventsDeleted(ids.length);
|
mCallback.eventsDeleted(ids.length);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user