Example #1
0
  @Override
  public int delete(Uri uri, String selection, String[] selectionArgs) {
    ItemSelect sel =
        ItemSelect.forDelete()
            .withItemUriPredicate(isItemUri)
            .selectionFor(uri, selection, selectionArgs);

    int deleted = rateDatabase.delete(RATE_CONTENT, sel.selection, sel.selectionArgs);
    if (deleted > 0) {
      getContext().getContentResolver().notifyChange(uri, null);
    }
    return deleted;
  }