need to handle cases where the download service is gone

This commit is contained in:
Tom Hennen 2015-06-27 17:05:19 -04:00
parent 473444291f
commit 23e1594165
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ public class DownloadObserver {
}
if (downloadService != null) {
callback.onContentChanged(downloadService.getDownloads());
} else {
// the service is gone, there are no more downloads.
callback.onContentChanged(new ArrayList<Downloader>());
}
startRefresher();
}