]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Use the website title as the default file name when saving .mht archives. https...
authorSoren Stoutner <soren@stoutner.com>
Thu, 28 Dec 2023 21:38:47 +0000 (14:38 -0700)
committerSoren Stoutner <soren@stoutner.com>
Thu, 28 Dec 2023 21:38:47 +0000 (14:38 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt

index d1fb09ae8afd1bc2bb36e7586c2c5455b11c1390..50e08d0dcc3e708802692fe79a0422e84ee71803 100644 (file)
@@ -1999,8 +1999,8 @@ class MainWebViewActivity : AppCompatActivity(), CreateBookmarkDialog.CreateBook
             }
 
             R.id.save_archive -> {
             }
 
             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
 
                 // Consume the event.
                 true