DownloadWorker: Always return success regardless of failure
The worker has done it's job properly, its a success. We have a separate database to track download's status. This will also allow to chain downloads while not making them inter-dependent. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -236,7 +236,7 @@ class DownloadWorker @AssistedInject constructor(
|
|||||||
// Remove all notifications
|
// Remove all notifications
|
||||||
notificationManager.cancel(NOTIFICATION_ID)
|
notificationManager.cancel(NOTIFICATION_ID)
|
||||||
|
|
||||||
return@withContext Result.failure()
|
return@withContext Result.success()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user