+ // Set the icon according to the theme.
+ if (darkTheme) {
+ dialogBuilder.setIcon(R.drawable.images_enabled_dark);
+ } else {
+ dialogBuilder.setIcon(R.drawable.images_enabled_light);
+ }
+
+ // Remove the incorrect lint warning below that `getActivity() might be null.
+ assert getActivity() != null;
+