mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
implement real deletion of events
This commit is contained in:
@@ -78,13 +78,13 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||
final String selection = COL_ID + " = ?";
|
||||
final String[] selectionArgs = {String.valueOf(id)};
|
||||
mDb.delete(TABLE_NAME, selection, selectionArgs);
|
||||
mCallback.eventsDeleted();
|
||||
mCallback.eventsDeleted(1);
|
||||
}
|
||||
|
||||
public void deleteEvents(String[] ids) {
|
||||
final String selection = COL_ID + " IN (?)";
|
||||
mDb.delete(TABLE_NAME, selection, ids);
|
||||
mCallback.eventsDeleted();
|
||||
mCallback.eventsDeleted(ids.length);
|
||||
}
|
||||
|
||||
public void getEvents(int fromTS, int toTS) {
|
||||
@@ -114,7 +114,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||
|
||||
void eventUpdated();
|
||||
|
||||
void eventsDeleted();
|
||||
void eventsDeleted(int cnt);
|
||||
|
||||
void gotEvents(List<Event> events);
|
||||
}
|
||||
|
Reference in New Issue
Block a user