companion object {
// Define the companion object constants. These can be moved to class constants once all of the code has transitioned to Kotlin.
const val SAVE_URL = 0
- const val SAVE_IMAGE = 1
+ const val SAVE_ARCHIVE = 1
+ const val SAVE_IMAGE = 2
// `@JvmStatic` will no longer be required once all the code has transitioned to Kotlin.
@JvmStatic
}
}
+ 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)
+ }
+ }
+
SAVE_IMAGE -> {
// Set the title.
dialogBuilder.setTitle(R.string.save_image)