mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-04 12:37:40 +01:00
Fixed bugs in the downloadobserver
This commit is contained in:
parent
8bde0e0fe2
commit
22640c24b0
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user