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:
michael hancock
2020-05-28 18:05:53 -07:00
committed by GitHub
co-authored by michael hancock Jamon Holmgren
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;