public class ViewSslCertificateDialog extends DialogFragment {
public static ViewSslCertificateDialog displayDialog(long webViewFragmentId) {
// Create an arguments bundle.
public class ViewSslCertificateDialog extends DialogFragment {
public static ViewSslCertificateDialog displayDialog(long webViewFragmentId) {
// Create an arguments bundle.
- // Set the Layout. The parent view is `null` because it will be assigned by `AlertDialog`.
- dialogBuilder.setView(layoutInflater.inflate(R.layout.unencrypted_website, null));
+ // Set the Layout. The parent view is `null` because it will be assigned by the alert dialog.
+ dialogBuilder.setView(layoutInflater.inflate(R.layout.unencrypted_website_dialog, null));
// Create an alert dialog from the alert dialog builder.
final AlertDialog alertDialog = dialogBuilder.create();
// Create an alert dialog from the alert dialog builder.
final AlertDialog alertDialog = dialogBuilder.create();
} else { // Display the SSL certificate information
// Set the title.
dialogBuilder.setTitle(R.string.ssl_certificate);
} else { // Display the SSL certificate information
// Set the title.
dialogBuilder.setTitle(R.string.ssl_certificate);
- // Set the layout. The parent view is `null` because it will be assigned by `AlertDialog`.
- dialogBuilder.setView(layoutInflater.inflate(R.layout.view_ssl_certificate, null));
+ // Set the layout. The parent view is `null` because it will be assigned by the alert dialog.
+ dialogBuilder.setView(layoutInflater.inflate(R.layout.view_ssl_certificate_dialog, null));