Commit bb90f000 authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Allow cancellation of apps in download queue

parent 7b515a36
......@@ -68,7 +68,11 @@ class Application(val packageName: String, private val applicationManager: Appli
return
}
DOWNLOADING -> {
downloader?.cancelDownload()
if (downloader != null) {
downloader?.cancelDownload()
} else {
onDownloadComplete(activity, DownloadManager.STATUS_FAILED)
}
return
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment