Fixed bugs in the downloadobserver

This commit is contained in:
daniel oeh 2012-08-06 13:03:17 +02:00
parent 8bde0e0fe2
commit 22640c24b0

View File

@ -137,6 +137,7 @@ public class DownloadObserver extends AsyncTask<Void, Void, Void> {
status.done = true;
status.reason = getDownloadStatus(cursor,
DownloadManager.COLUMN_REASON);
break;
case DownloadManager.STATUS_PENDING:
status.statusMsg = R.string.download_pending;
break;
@ -144,6 +145,7 @@ public class DownloadObserver extends AsyncTask<Void, Void, Void> {
status.done = true;
status.successful = false;
status.statusMsg = R.string.download_cancelled_msg;
requester.notifyDownloadService(context);
}
}
} while (cursor.moveToNext());