Skip to content

Commit

Permalink
Update ByWebChromeClient.java
Browse files Browse the repository at this point in the history
fix 解决可能的空指针问题 #32
  • Loading branch information
youlookwhat authored Sep 4, 2021
1 parent 5d50f90 commit d194b9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void onProgressChanged(WebView view, int newProgress) {
// 当显示错误页面时,进度达到100才显示网页
if (mByWebView.getWebView() != null
&& mByWebView.getWebView().getVisibility() == View.INVISIBLE
&& mByWebView.getErrorView().getVisibility() == View.GONE
&& (mByWebView.getErrorView() == null || mByWebView.getErrorView().getVisibility() == View.GONE)
&& newProgress == 100) {
mByWebView.getWebView().setVisibility(View.VISIBLE);
}
Expand Down

0 comments on commit d194b9c

Please sign in to comment.