Report if a failure is following a download abort

This commit is contained in:
Gabriele M
2017-07-05 23:35:14 +02:00
parent 3de555ea06
commit 1795bd8b11
4 changed files with 12 additions and 9 deletions

View File

@@ -65,7 +65,7 @@ public class UpdatesCheckReceiver extends BroadcastReceiver {
String url = Utils.getServerURL(context);
DownloadClient.downloadFile(url, jsonNew, new DownloadClient.DownloadCallback() {
@Override
public void onFailure() {
public void onFailure(boolean cancelled) {
Log.e(TAG, "Could not download updates list, scheduling new check");
scheduleUpdatesCheck(context);
}