public void UpdateDownloadProgress(int bytesDownloaded, long downloadSize) { this.InvokeOnMainThread(() => { float curProgress = (float)(bytesDownloaded / 100.0); if (infoController != null) { infoController.UpdateDownloadProgress(bytesDownloaded, downloadSize); } else { progressView.UpdateProgress(curProgress); } }); }
public void UpdateDownloadProgress(int bytesDownloaded, long downloadSize) { float curProgress = (float)(bytesDownloaded / 100.0); if (infoController != null) { infoController.UpdateDownloadProgress(bytesDownloaded, downloadSize); } else { progressView.UpdateProgress(curProgress); } // if (isInInfoPanel) { // if (infoController != null) { // infoController.UpdateDownloadProgress (bytesDownloaded, downloadSize); // } // } else { // progressView.UpdateProgress (curProgress); // } }