@Override protected void update(Uri uri, Context context) { super.update(uri, context); if (context.isDeleted()) { mTaskPersister.removeTasksForContext(context.getLocalId()); } }
@Override public boolean updateDeletedFlag(Id id, boolean isDeleted) { boolean result = super.updateDeletedFlag(id, isDeleted); if (isDeleted) { mTaskPersister.removeTasksForContext(id); } return result; }