X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FAboutViewSourceDialog.kt;h=5089fa22ca8104c121db09d5405f133b80a6aeaf;hp=d780467f68b79c38ab379dba6a92eb96e1cc0912;hb=91154b307513e7bc6958b27fba518e4f9b564cf9;hpb=27e33047e14466c84212bca02a14a7fc4ff15af8 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..5089fa22 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/dialogs/AboutViewSourceDialog.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/dialogs/AboutViewSourceDialog.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2018-2020 Soren Stoutner . + * Copyright © 2018-2021 Soren Stoutner . * * This file is part of Privacy Browser . * @@ -29,13 +29,13 @@ import androidx.preference.PreferenceManager import com.stoutner.privacybrowser.R -class AboutViewSourceDialog: DialogFragment() { +class AboutViewSourceDialog : DialogFragment() { override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { // 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) {