From ec87c78d6f66810cd177df7141579162e25f64d6 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Thu, 28 Dec 2023 14:38:47 -0700 Subject: [PATCH] Use the website title as the default file name when saving .mht archives. https://redmine.stoutner.com/issues/1140 --- .../stoutner/privacybrowser/activities/MainWebViewActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt index d1fb09ae..50e08d0d 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt @@ -1999,8 +1999,8 @@ class MainWebViewActivity : AppCompatActivity(), CreateBookmarkDialog.CreateBook } R.id.save_archive -> { - // Open the file picker with a default file name built from the current domain name. - saveWebpageArchiveActivityResultLauncher.launch(currentWebView!!.currentDomainName + ".mht") + // Open the file picker with a default file name built from the website title. + saveWebpageArchiveActivityResultLauncher.launch(currentWebView!!.title + ".mht") // Consume the event. true -- 2.45.2