Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
App Lounge
Commits
bb90f000
Commit
bb90f000
authored
Jan 18, 2019
by
Nihar Thakkar
Browse files
Allow cancellation of apps in download queue
parent
7b515a36
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/io/eelo/appinstaller/application/model/Application.kt
View file @
bb90f000
...
...
@@ -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
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment