X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FViewRequestDialog.kt;h=54e997af4507e7885e1f9a64c72a8635be4c87b7;hp=b5366362ac57ce3aaac676c499a2e7130c9e1fb0;hb=1b27ac6f2b7c046945fc97e2aff9adbde8a152ce;hpb=8142ac5fc2489de735de4b6fa21a1eae733ccfce diff --git a/app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewRequestDialog.kt b/app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewRequestDialog.kt index b5366362..54e997af 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewRequestDialog.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewRequestDialog.kt @@ -96,8 +96,8 @@ class ViewRequestDialog : DialogFragment() { // Get the current theme status. val currentThemeStatus = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK - // Set the icon according to the theme. - dialogBuilder.setIconAttribute(R.attr.blockAdsBlueIcon) + // Set the icon. + dialogBuilder.setIcon(R.drawable.block_ads_enabled) // Set the title. dialogBuilder.setTitle(resources.getString(R.string.request_details) + " - " + id) @@ -124,7 +124,7 @@ class ViewRequestDialog : DialogFragment() { val alertDialog = dialogBuilder.create() // Get a handle for the shared preferences. - val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context) + val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(requireContext()) // Get the screenshot preference. val allowScreenshots = sharedPreferences.getBoolean(getString(R.string.allow_screenshots_key), false)