mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
Canceling a download now removes all .part files correctly #319
This commit is contained in:
parent
99126c32df
commit
5856dc203d
@ -214,8 +214,8 @@ public class DownloadService extends Service {
|
||||
return Observable.create(subscriber -> {
|
||||
if (subscriber.isUnsubscribed()) return;
|
||||
try {
|
||||
// Stop if download is completed
|
||||
if (chunk.isDownloaded) {
|
||||
// Stop if download is completed or download canceled
|
||||
if (chunk.isDownloaded || downloadStatus.get(chunk.getNotificationID()) == 2) {
|
||||
subscriber.onCompleted();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user