/**
- * Copyright 2015-2016 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2016 Soren Stoutner <soren@stoutner.com>.
*
* This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
*
import java.util.Date;
public class SslCertificateError extends DialogFragment{
+
private String primaryError;
private String urlWithError;
private String issuedToCName;
argumentsBundle.putString("StartDate", startDateForBundle.toString());
argumentsBundle.putString("EndDate", endDateForBundle.toString());
- // Add the `Bundle` to this instance of `SslCertificateError`.
+ // Add `argumentsBundle` to this instance of `SslCertificateError`.
SslCertificateError thisSslCertificateErrorDialog = new SslCertificateError();
thisSslCertificateErrorDialog.setArguments(argumentsBundle);
return thisSslCertificateErrorDialog;
}
+ @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SpannableStringBuilder endDateStringBuilder = new SpannableStringBuilder((endDateLabel + endDate));
// Create a blue `ForegroundColorSpan`. We have to use the deprecated `getColor` until API >= 23.
- ForegroundColorSpan blueColorSpan = new ForegroundColorSpan(getResources().getColor(R.color.blue));
+ ForegroundColorSpan blueColorSpan = new ForegroundColorSpan(getResources().getColor(R.color.blue_700));
// Setup the spans to display the certificate information in blue. `SPAN_INCLUSIVE_INCLUSIVE` allows the span to grow in either direction.
urlStringBuilder.setSpan(blueColorSpan, urlLabel.length(), urlStringBuilder.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);