- val dialogBuilder: AlertDialog.Builder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
-
- // Get the current theme status.
- val currentThemeStatus = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
-
- // Set the icon according to the theme.
- if (currentThemeStatus == Configuration.UI_MODE_NIGHT_YES) {
- // Set the dark icon.
- dialogBuilder.setIcon(R.drawable.domains_night)
- } else {
- // Set the light icon.
- dialogBuilder.setIcon(R.drawable.domains_light)
- }
+ val dialogBuilder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
+
+ // Set the icon.
+ dialogBuilder.setIcon(R.drawable.domains)