예제 #1
0
  @Override
  protected void update(Uri uri, Context context) {
    super.update(uri, context);

    if (context.isDeleted()) {
      mTaskPersister.removeTasksForContext(context.getLocalId());
    }
  }
예제 #2
0
  @Override
  public boolean updateDeletedFlag(Id id, boolean isDeleted) {
    boolean result = super.updateDeletedFlag(id, isDeleted);

    if (isDeleted) {
      mTaskPersister.removeTasksForContext(id);
    }

    return result;
  }