// Use a builder to create the alert dialog.
val dialogBuilder: AlertDialog.Builder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
- // Set the style and the icon according to the theme.
- dialogBuilder.setIconAttribute(R.attr.aboutIcon)
+ // Set the icon according to the theme.
+ dialogBuilder.setIconAttribute(R.attr.aboutBlueIcon)
// Set the title.
dialogBuilder.setTitle(R.string.about_view_source)
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
// Get the screenshot preference.
- val allowScreenshots = sharedPreferences.getBoolean("allow_screenshots", false)
+ val allowScreenshots = sharedPreferences.getBoolean(getString(R.string.allow_screenshots_key), false)
// Disable screenshots if not allowed.
if (!allowScreenshots) {