From 1182ca260931154e8c2276ad24cf7742beb8144e Mon Sep 17 00:00:00 2001 From: KhatibFX Date: Fri, 7 Apr 2023 22:28:43 +0800 Subject: [PATCH] Fixed syntax error in view hiding --- .../in_app_browser/InAppBrowserActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);