Fix delete download not working
This commit is contained in:
1 parent
ee504e3361
commit
31dcd349df
1 file changed
+2
-2
@@ -761,12 +761,12 @@ class DownloadsScene :
|
|||||||
}
|
}
|
||||||
|
|
||||||
lifecycleScope.launchIO {
|
lifecycleScope.launchIO {
|
||||||
|
// Delete
|
||||||
|
DownloadManager.deleteRangeDownload(mGidList)
|
||||||
// Delete image files
|
// Delete image files
|
||||||
val checked = mBuilder.isChecked
|
val checked = mBuilder.isChecked
|
||||||
Settings.removeImageFiles = checked
|
Settings.removeImageFiles = checked
|
||||||
if (checked) {
|
if (checked) {
|
||||||
// Delete
|
|
||||||
DownloadManager.deleteRangeDownload(mGidList)
|
|
||||||
val files = arrayOfNulls<UniFile>(mDownloadInfoList.size)
|
val files = arrayOfNulls<UniFile>(mDownloadInfoList.size)
|
||||||
for ((i, info) in mDownloadInfoList.withIndex()) {
|
for ((i, info) in mDownloadInfoList.withIndex()) {
|
||||||
// Put file
|
// Put file
|
||||||
|
|||||||
Reference in new issue
Block a user