]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewRequestDialog.kt
Convert the flavor specific Java classes to Kotlin. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / dialogs / ViewRequestDialog.kt
index 2b7e345b99bf5179cf14b598e63bc4ce1d9301a4..0d63f54444086243b7860f9497079052880d0ede 100644 (file)
@@ -100,11 +100,7 @@ class ViewRequestDialog : DialogFragment() {
         val currentThemeStatus = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
 
         // Set the icon according to the theme.
-        if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
-            dialogBuilder.setIcon(R.drawable.block_ads_enabled_day)
-        } else {
-            dialogBuilder.setIcon(R.drawable.block_ads_enabled_night)
-        }
+        dialogBuilder.setIconAttribute(R.attr.blockAdsBlueIcon)
 
         // Set the title.
         dialogBuilder.setTitle(resources.getString(R.string.request_details) + " - " + id)