@Override protected void configureDialogBuilder(AlertDialog.Builder builder) { // Copy the icon from this object to the prompt we produce. We lazily create the drawable, // as the user may not ever actually tap this object. if (mPromptIcon == null && mIconBitmap != null) { mPromptIcon = new BitmapDrawable(getContext().getResources(), mFaviconView.getBitmap()); } builder.setIcon(mPromptIcon); }