From: Soren Stoutner Date: Thu, 28 Dec 2023 21:38:47 +0000 (-0700) Subject: Use the website title as the default file name when saving .mht archives. https... X-Git-Tag: v3.17~10 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=ec87c78d6f66810cd177df7141579162e25f64d6;p=PrivacyBrowserAndroid.git Use the website title as the default file name when saving .mht archives. https://redmine.stoutner.com/issues/1140 --- 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