X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FAboutViewSourceDialog.kt;h=1b9161eb2068447a14329a97c38b7477f94b9f29;hb=9cb208c1f5c7a905f787f4ec4795a92e72195fba;hp=d780467f68b79c38ab379dba6a92eb96e1cc0912;hpb=27e33047e14466c84212bca02a14a7fc4ff15af8;p=PrivacyBrowserAndroid.git diff --git a/app/src/main/java/com/stoutner/privacybrowser/dialogs/AboutViewSourceDialog.kt b/app/src/main/java/com/stoutner/privacybrowser/dialogs/AboutViewSourceDialog.kt index d780467f..1b9161eb 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/dialogs/AboutViewSourceDialog.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/dialogs/AboutViewSourceDialog.kt @@ -34,8 +34,8 @@ class AboutViewSourceDialog: DialogFragment() { // 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) @@ -53,7 +53,7 @@ class AboutViewSourceDialog: DialogFragment() { 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) {