void removeDownload ( OfflineDownloadOptions offlineDownload , boolean canceled ) { if ( canceled ) { stateChangeDispatcher . onCancel ( offlineDownload ) ; } else { stateChangeDispatcher . onSuccess ( offlineDownload ) ; } offlineDownloads . remove ( offlineDownload ) ; }
Called when the OfflineDownloadService has finished downloading .