diff options
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/services/DownloadService.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/services/DownloadService.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/services/DownloadService.kt b/app/src/main/kotlin/com/pitchedapps/frost/services/DownloadService.kt index ee0c2027..986467b8 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/services/DownloadService.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/services/DownloadService.kt @@ -28,6 +28,8 @@ import java.io.File * * Background file downloader * All we are given is a link and a mime type + * + * With reference to the <a href="https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/Progress.java">OkHttp3 sample</a> */ class DownloadService : IntentService("FrostVideoDownloader") { @@ -64,7 +66,7 @@ class DownloadService : IntentService("FrostVideoDownloader") { .url(url) .build() - notifBuilder = frostNotification.quiet + notifBuilder = frostNotification notifId = Math.abs(url.hashCode() + System.currentTimeMillis().toInt()) val cancelIntent = PendingIntent.getService(this, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT) |