网页加载错误显示错误网址问题
This commit is contained in:
parent
ecf3a94b64
commit
b1d06a4f1a
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user