void finishDownload ( OfflineDownloadOptions offlineDownload , OfflineRegion offlineRegion ) { OfflineDownloadStateReceiver . dispatchSuccessBroadcast ( this , offlineDownload ) ; offlineRegion . setDownloadState ( OfflineRegion . STATE_INACTIVE ) ; offlineRegion . setObserver ( null ) ; removeOfflineRegion ( offlineDownload . uuid ( ) . intValue ( ) ) ; }
When a particular download has been completed this method s called which handles removing the notification and setting the download state .