diff options
author | Allan Wang <me@allanwang.ca> | 2017-08-19 23:18:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-19 23:18:47 -0700 |
commit | 17b2b7a21b1a8bb2e7afdbff90293009f1b26057 (patch) | |
tree | a2e2d158d739820da1baca9c2fd946b34132b429 /app/src/main/kotlin/com/pitchedapps/frost/utils/Downloader.kt | |
parent | 8c178bd82d75ef237c97863fae555ca0346e7352 (diff) | |
download | frost-17b2b7a21b1a8bb2e7afdbff90293009f1b26057.tar.gz frost-17b2b7a21b1a8bb2e7afdbff90293009f1b26057.tar.bz2 frost-17b2b7a21b1a8bb2e7afdbff90293009f1b26057.zip |
Feature/ringtone selector (#200)
* Update changelog
* Create and test ringtone selector
* Update changelog
* Update text
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/Downloader.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/Downloader.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Downloader.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Downloader.kt index 35f69bca..60d709fb 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Downloader.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Downloader.kt @@ -13,9 +13,9 @@ import ca.allanwang.kau.utils.copyFromInputStream import ca.allanwang.kau.utils.string import com.pitchedapps.frost.BuildConfig import com.pitchedapps.frost.R -import com.pitchedapps.frost.services.frostConfig import com.pitchedapps.frost.services.frostNotification import com.pitchedapps.frost.services.getNotificationPendingCancelIntent +import com.pitchedapps.frost.services.quiet import okhttp3.MediaType import okhttp3.OkHttpClient import okhttp3.Request @@ -66,7 +66,7 @@ private fun AnkoAsyncContext<Context>.frostDownloadImpl(url: String, type: Downl val notifId = Math.abs(url.hashCode() + System.currentTimeMillis().toInt()) var notifBuilderAttempt: NotificationCompat.Builder? = null weakRef.get()?.apply { - notifBuilderAttempt = frostNotification + notifBuilderAttempt = frostNotification.quiet .setContentTitle(string(type.downloadingRes)) .setCategory(Notification.CATEGORY_PROGRESS) .setWhen(System.currentTimeMillis()) @@ -133,7 +133,7 @@ private fun OkHttpClient.cancel(url: String) { private fun NotificationCompat.Builder.show(weakRef: WeakReference<Context>, notifId: Int) { val c = weakRef.get() ?: return - NotificationManagerCompat.from(c).notify(DOWNLOAD_GROUP, notifId, build().frostConfig()) + NotificationManagerCompat.from(c).notify(DOWNLOAD_GROUP, notifId, build()) } private class ProgressResponseBody( |