From 151a970d3e60f97057a73026768ae4a805eda873 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Wed, 27 May 2026 07:08:33 +0200 Subject: [PATCH] add downlaod delegate to fix download name resolution --- .../flutter_mozilla_components/components/Core.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/components/Core.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/components/Core.kt index dbf7b2ca..c82417a2 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/components/Core.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/components/Core.kt @@ -127,6 +127,14 @@ class Core( cookieBannerHandlingGlobalRules = true, cookieBannerHandlingGlobalRulesSubFrames = true, webContentIsolationStrategy = WebContentIsolationStrategy.ISOLATE_HIGH_VALUE, + downloadDelegate = EngineDownloadDelegate( + context = context, + downloadLocation = { + Environment.getExternalStoragePublicDirectory( + Environment.DIRECTORY_DOWNLOADS, + ).path + }, + ), ) }