+ SAVE_ARCHIVE -> {
+ // Set the title.
+ dialogBuilder.setTitle(R.string.save_archive)
+
+ // Set the icon according to the theme.
+ if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
+ dialogBuilder.setIcon(R.drawable.dom_storage_cleared_day)
+ } else {
+ dialogBuilder.setIcon(R.drawable.dom_storage_cleared_night)
+ }
+
+ // Convert the URL to a URI.
+ val uri = Uri.parse(originalUrlString)
+
+ // Build a file name string based on the host from the URI.
+ fileNameString = uri.host + ".mht"
+ }
+