fix(android): duplicate `setWebChromeClient()` overwrite (#1417)
This commit is contained in:
parent
d55b25c09e
commit
2f8c4c5067
|
@ -1086,8 +1086,10 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WebChromeClient mWebChromeClient;
|
||||||
@Override
|
@Override
|
||||||
public void setWebChromeClient(WebChromeClient client) {
|
public void setWebChromeClient(WebChromeClient client) {
|
||||||
|
this.mWebChromeClient = client;
|
||||||
super.setWebChromeClient(client);
|
super.setWebChromeClient(client);
|
||||||
if (client instanceof RNCWebChromeClient) {
|
if (client instanceof RNCWebChromeClient) {
|
||||||
((RNCWebChromeClient) client).setProgressChangedFilter(progressChangedFilter);
|
((RNCWebChromeClient) client).setProgressChangedFilter(progressChangedFilter);
|
||||||
|
@ -1234,13 +1236,6 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||||
destroy();
|
destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
WebChromeClient mWebChromeClient;
|
|
||||||
@Override
|
|
||||||
public void setWebChromeClient(WebChromeClient client) {
|
|
||||||
this.mWebChromeClient = client;
|
|
||||||
super.setWebChromeClient(client);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
if (mWebChromeClient != null) {
|
if (mWebChromeClient != null) {
|
||||||
|
|
Loading…
Reference in New Issue