1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 10:31:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Check download listener

This commit is contained in:
sunnylqm
2021-03-26 18:12:25 +08:00
parent 7c8e75587b
commit 0e89b270cc

View File

@@ -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;
} }