Check download listener
This commit is contained in:
parent
7c8e75587b
commit
0e89b270cc
@ -529,7 +529,10 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, long[], Void> {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Log.e("pushy", "download task failed", e);
|
Log.e("pushy", "download task failed", e);
|
||||||
params[0].listener.onDownloadFailed(e);
|
|
||||||
|
if (params[0].listener != null) {
|
||||||
|
params[0].listener.onDownloadFailed(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user