コード例 #1
0
  public void reconnect(Context ctx, Callback receiver) {

    if (getStatus() == Status.FINISHED && callback != null)
      callback.downloadFinished(taskId, addData);
    else {
      this.callback = receiver;
      super.reconnect(ctx);
    }
  }
コード例 #2
0
 public void disconnect() {
   callback = null;
   super.disconnect();
 }