Merge pull request #1618 from KhatibFX/bugfix/viewgroup_index_crash

InAppBrowser Bugfix/viewgroup index crash
This commit is contained in:
Lorenzo Pichilli 2023-05-16 02:53:22 +02:00 committed by GitHub
commit 2b293cdd78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -539,10 +539,6 @@ public class InAppBrowserActivity extends AppCompatActivity implements InAppBrow
if (webView.channelDelegate != null) {
webView.channelDelegate.dispose();
}
ViewGroup vg = (ViewGroup) (webView.getParent());
if (vg != null) {
vg.removeView(webView);
}
webView.setWebChromeClient(new WebChromeClient());
webView.setWebViewClient(new WebViewClient() {
public void onPageFinished(WebView view, String url) {