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 695f72bd..94edb7be 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 @@ -544,7 +544,7 @@ public class InAppBrowserActivity extends AppCompatActivity implements InAppBrow // Modified view removal to try and fix a crash for (int i = 0; i < vg.getChildCount(); i++) { View v = vg.getChildAt(i); - v.visibility = View.GONE; + v.setVisibility(View.GONE); } // instead of using // vg.removeView(webView);