- // Set the title and the icon according to the save type.
- when (saveType) {
- SAVE_LOGCAT -> {
- // Set the title.
- dialogBuilder.setTitle(R.string.save_logcat)
-
- // Set the icon according to the theme.
- if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
- dialogBuilder.setIcon(R.drawable.save_dialog_day)
- } else {
- dialogBuilder.setIcon(R.drawable.save_dialog_night)
- }
- }
-
- SAVE_ABOUT_VERSION_TEXT -> {
- // Set the title.
- dialogBuilder.setTitle(R.string.save_text)
-
- // Set the icon according to the theme.
- if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
- dialogBuilder.setIcon(R.drawable.save_text_blue_day)
- } else {
- dialogBuilder.setIcon(R.drawable.save_text_blue_night)
- }
- }
-
- SAVE_ABOUT_VERSION_IMAGE -> {
- // Set the title.
- dialogBuilder.setTitle(R.string.save_image)
-
- // Set the icon according to the theme.
- if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
- dialogBuilder.setIcon(R.drawable.images_enabled_day)
- } else {
- dialogBuilder.setIcon(R.drawable.images_enabled_night)
- }
- }
- }