need to handle cases where the download service is gone
This commit is contained in:
parent
473444291f
commit
23e1594165
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue