Mention ad blockers in certificate error message
This commit is contained in:
parent
4872ea76f4
commit
6020f481c5
@ -267,6 +267,9 @@ public class HttpDownloader extends Downloader {
|
||||
onFail(DownloadError.ERROR_IO_BLOCKED, e.getMessage());
|
||||
return;
|
||||
}
|
||||
} else if (message.contains("Trust anchor for certification path not found")) {
|
||||
onFail(DownloadError.ERROR_CERTIFICATE, e.getMessage());
|
||||
return;
|
||||
}
|
||||
}
|
||||
onFail(DownloadError.ERROR_IO_ERROR, e.getMessage());
|
||||
|
@ -26,7 +26,8 @@ public enum DownloadError {
|
||||
ERROR_IO_WRONG_SIZE(17, R.string.download_error_wrong_size),
|
||||
ERROR_IO_BLOCKED(18, R.string.download_error_blocked),
|
||||
ERROR_UNSUPPORTED_TYPE_HTML(19, R.string.download_error_unsupported_type_html),
|
||||
ERROR_NOT_FOUND(20, R.string.download_error_not_found);
|
||||
ERROR_NOT_FOUND(20, R.string.download_error_not_found),
|
||||
ERROR_CERTIFICATE(21, R.string.download_error_certificate);
|
||||
|
||||
private final int code;
|
||||
private final int resId;
|
||||
|
@ -262,6 +262,7 @@
|
||||
<string name="download_canceled_msg">Download canceled</string>
|
||||
<string name="download_error_wrong_size">The server connection was lost before completing the download</string>
|
||||
<string name="download_error_blocked">The download was blocked by another app on your device.</string>
|
||||
<string name="download_error_certificate">Unable to establish a secure connection. This can mean that another app on your device blocks the download, or that something is wrong with the server certificates.</string>
|
||||
<string name="download_canceled_autodownload_enabled_msg">Download canceled\nDisabled <i>Auto Download</i> for this item</string>
|
||||
<string name="download_report_title">Downloads completed with error(s)</string>
|
||||
<string name="auto_download_report_title">Auto-downloads completed</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user