mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-23 09:18:38 +00:00
fix(android): Fixes black screen on back button press (#1298 by @michan85)
Co-authored-by: michael hancock <michael.hancock@24.com> Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
This commit is contained in:
parent
b97d16c23d
commit
0317a4b4a5
@ -1234,6 +1234,21 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
destroy();
|
||||
}
|
||||
|
||||
WebChromeClient mWebChromeClient;
|
||||
@Override
|
||||
public void setWebChromeClient(WebChromeClient client) {
|
||||
this.mWebChromeClient = client;
|
||||
super.setWebChromeClient(client);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
if(mWebChromeClient!=null){
|
||||
mWebChromeClient.onHideCustomView();
|
||||
}
|
||||
super.destroy();
|
||||
}
|
||||
|
||||
protected class RNCWebViewBridge {
|
||||
RNCWebView mContext;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user