From a13697e4d8061b1fd3cf43db5c89cdb3bd1b5b66 Mon Sep 17 00:00:00 2001 From: MickeyMoz Date: Wed, 11 Feb 2026 10:04:30 +0000 Subject: [PATCH 1/2] Update Android Components version to 149.0.20260210213212. --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 033197c82..098078992 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] # Android Components -android-components = "149.0.20260203092803" +android-components = "149.0.20260210213212" # AGP android-gradle-plugin = "9.0.0" From 6f1e3a781faf83c89e57c9363f5ce1bafd60ad9d Mon Sep 17 00:00:00 2001 From: mcarare <48995920+mcarare@users.noreply.github.com> Date: Wed, 11 Feb 2026 16:15:56 +0200 Subject: [PATCH 2/2] Implement `downloadFileUtils` in `DownloadService`. --- .../reference/browser/downloads/DownloadService.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/main/java/org/mozilla/reference/browser/downloads/DownloadService.kt b/app/src/main/java/org/mozilla/reference/browser/downloads/DownloadService.kt index 5ed79b214..be91dcbc1 100644 --- a/app/src/main/java/org/mozilla/reference/browser/downloads/DownloadService.kt +++ b/app/src/main/java/org/mozilla/reference/browser/downloads/DownloadService.kt @@ -4,6 +4,7 @@ package org.mozilla.reference.browser.downloads +import android.os.Environment import mozilla.components.browser.state.store.BrowserStore import mozilla.components.feature.downloads.AbstractFetchDownloadService import mozilla.components.feature.downloads.DefaultPackageNameProvider @@ -11,6 +12,8 @@ import mozilla.components.feature.downloads.DownloadEstimator import mozilla.components.feature.downloads.FileSizeFormatter import mozilla.components.feature.downloads.PackageNameProvider import mozilla.components.support.base.android.NotificationsDelegate +import mozilla.components.support.utils.DefaultDownloadFileUtils +import mozilla.components.support.utils.DownloadFileUtils import org.mozilla.reference.browser.ext.components class DownloadService : AbstractFetchDownloadService() { @@ -19,5 +22,13 @@ class DownloadService : AbstractFetchDownloadService() { override val notificationsDelegate: NotificationsDelegate by lazy { components.notificationsDelegate } override val fileSizeFormatter: FileSizeFormatter by lazy { components.fileSizeFormatter } override val downloadEstimator: DownloadEstimator by lazy { components.downloadEstimator } + override val downloadFileUtils: DownloadFileUtils by lazy { + DefaultDownloadFileUtils( + context = applicationContext, + downloadLocation = { + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).path + }, + ) + } override val packageNameProvider: PackageNameProvider by lazy { DefaultPackageNameProvider(applicationContext) } }