@ Nullable public OfflineDownloadOptions getActiveDownloadForOfflineRegion ( OfflineRegion offlineRegion ) { OfflineDownloadOptions offlineDownload = null ; if ( ! offlineDownloads . isEmpty ( ) ) { for ( OfflineDownloadOptions download : offlineDownloads ) { if ( download . uuid ( ) == offlineRegion . getID ( ) ) { offlineDownload = download ; } } } return offlineDownload ; }
Get the OfflineDownloadOptions for an offline region returns null if no download is active for region .