- if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
- dialogBuilder.setIcon(R.drawable.copy_enabled_day)
- } else {
- dialogBuilder.setIcon(R.drawable.copy_enabled_night)
- }
+ dialogBuilder.setIconAttribute(R.attr.copyBlueIcon)
+ }
+
+ SAVE_ARCHIVE -> {
+ // Set the title.
+ dialogBuilder.setTitle(R.string.save_archive)
+
+ // Set the icon according to the theme.
+ dialogBuilder.setIconAttribute(R.attr.domStorageBlueIcon)
+
+ // 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"