autoRetry method

void autoRetry()

Implementation

void autoRetry(){
  if(retryDownloadCount>=maxRetryCount){//重试5次 0-4
    if (downloadHandler != null) {
      downloadHandler(model);
    }
    showDownloadFailDialog();
    retryDownloadCount = -1;
  }else{
    retryDownloadCount++;
    handleDownload();
  }
}