val dialogBuilder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
// Set the icon according to the theme.
- dialogBuilder.setIconAttribute(R.attr.fontSizeBlueIcon)
+ dialogBuilder.setIcon(R.drawable.font_size)
// Set the title.
dialogBuilder.setTitle(R.string.font_size)
val dialogWindow = alertDialog.window!!
// Get a handle for the shared preferences.
- val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
+ val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(requireContext())
// Get the screenshot preferences.
val allowScreenshots = sharedPreferences.getBoolean(getString(R.string.allow_screenshots_key), false)