Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Allow cancellation of apps in download queue

parent 7b515a36
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -68,7 +68,11 @@ class Application(val packageName: String, private val applicationManager: Appli
                return
                return
            }
            }
            DOWNLOADING -> {
            DOWNLOADING -> {
                if (downloader != null) {
                    downloader?.cancelDownload()
                    downloader?.cancelDownload()
                } else {
                    onDownloadComplete(activity, DownloadManager.STATUS_FAILED)
                }
                return
                return
            }
            }
        }
        }