网页加载错误显示错误网址问题

This commit is contained in:
18401019693 2022-11-17 13:28:07 +08:00
parent ecf3a94b64
commit b1d06a4f1a

View File

@ -209,7 +209,7 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
// 这个方法在6.0才出现
int statusCode = errorResponse.getStatusCode();
if (404 == statusCode || 500 == statusCode) {
if ( !request.getUrl().toString().contains("favicon.png")){
if ( !request.getUrl().toString().contains("favicon")){
htmlError.setVisibility(View.VISIBLE);
htmlError.setText("errorCode:" + statusCode +"\n failingUrl:" + request.getUrl());
}