LeOSium-WF/app/src/main/java/net/waterfox/android/downloads/DownloadService.kt

22 lines
1.1 KiB
Kotlin
Raw Normal View History

2024-12-12 08:45:34 +01:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package net.waterfox.android.downloads
import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.feature.downloads.AbstractFetchDownloadService
2025-06-30 10:56:29 +02:00
import mozilla.components.feature.downloads.DefaultFileSizeFormatter
import mozilla.components.feature.downloads.FileSizeFormatter
2024-12-12 08:45:34 +01:00
import mozilla.components.support.base.android.NotificationsDelegate
import net.waterfox.android.R
import net.waterfox.android.ext.components
class DownloadService : AbstractFetchDownloadService() {
override val httpClient by lazy { components.core.client }
override val store: BrowserStore by lazy { components.core.store }
override val style: Style by lazy { Style(R.color.fx_mobile_text_color_accent) }
override val notificationsDelegate: NotificationsDelegate by lazy { components.notificationsDelegate }
2025-06-30 10:56:29 +02:00
override val fileSizeFormatter: FileSizeFormatter by lazy { DefaultFileSizeFormatter(this) }
2024-12-12 08:45:34 +01:00
}