- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- // Save the components of the SSL error message in class variables.
- primaryErrorInt = getArguments().getInt("PrimaryErrorInt");
- urlWithError = getArguments().getString("UrlWithError");
- issuedToCName = getArguments().getString("IssuedToCName");
- issuedToOName = getArguments().getString("IssuedToOName");
- issuedToUName = getArguments().getString("IssuedToUName");
- issuedByCName = getArguments().getString("IssuedByCName");
- issuedByOName = getArguments().getString("IssuedByOName");
- issuedByUName = getArguments().getString("IssuedByUName");
- startDate = getArguments().getString("StartDate");
- endDate = getArguments().getString("EndDate");
- }
-
- // The public interface is used to send information back to the parent activity.
- public interface SslCertificateErrorListener {
- void onSslErrorCancel();
-
- void onSslErrorProceed();
- }
-
- // `sslCertificateErrorListener` is used in `onAttach` and `onCreateDialog`.
- private SslCertificateErrorListener sslCertificateErrorListener;
-
- // Check to make sure that the parent activity implements the listener.
- public void onAttach(Context context) {
- super.onAttach(context);
-
- try {
- sslCertificateErrorListener = (SslCertificateErrorListener) context;
- } catch(ClassCastException exception) {
- throw new ClassCastException(context.toString() + " must implement SslCertificateErrorListener");
- }
- }
-