mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
fix(android): Fix ClassCastException when doing native things(#987)
This commit is contained in:
committed by
Thibault Malbranche
parent
9dff31258d
commit
7e68da4ffe
@@ -1020,7 +1020,9 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
@Override
|
||||
public void setWebViewClient(WebViewClient client) {
|
||||
super.setWebViewClient(client);
|
||||
mRNCWebViewClient = (RNCWebViewClient) client;
|
||||
if (client instanceof RNCWebViewClient) {
|
||||
mRNCWebViewClient = (RNCWebViewClient) client;
|
||||
}
|
||||
}
|
||||
|
||||
public @Nullable
|
||||
|
||||
Reference in New Issue
Block a user