- // Get the current theme status.
- val currentThemeStatus = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
-
- // 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.
- dialogBuilder.setIconAttribute(R.attr.saveBlueIcon)
- }
-
- SAVE_ABOUT_VERSION_TEXT -> {
- // Set the title.
- dialogBuilder.setTitle(R.string.save_text)