From 814e1b22ea70b3258cfbcd45fb0babe98964be16 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Tue, 16 May 2023 02:50:46 +0200 Subject: [PATCH] Update InAppBrowserActivity.java --- .../in_app_browser/InAppBrowserActivity.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_browser/InAppBrowserActivity.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_browser/InAppBrowserActivity.java index 94edb7be..17476d78 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_browser/InAppBrowserActivity.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_browser/InAppBrowserActivity.java @@ -539,16 +539,6 @@ public class InAppBrowserActivity extends AppCompatActivity implements InAppBrow if (webView.channelDelegate != null) { webView.channelDelegate.dispose(); } - ViewGroup vg = (ViewGroup) (webView.getParent()); - if (vg != null) { - // Modified view removal to try and fix a crash - for (int i = 0; i < vg.getChildCount(); i++) { - View v = vg.getChildAt(i); - v.setVisibility(View.GONE); - } - // instead of using -// vg.removeView(webView); - } webView.setWebChromeClient(new WebChromeClient()); webView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) {