Skip to content

Commit 7dfa184

Browse files
authored
Merge pull request #273 from awkaw/patch-3
Fix Hide/Show WebView
2 parents aa351a8 + 0f9f3fb commit 7dfa184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/flutter_webview_plugin/WebviewManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermiss
240240
}
241241

242242
if (hidden) {
243-
webView.setVisibility(View.INVISIBLE);
243+
webView.setVisibility(View.GONE);
244244
}
245245

246246
if (clearCookies) {
@@ -337,7 +337,7 @@ boolean canGoForward() {
337337
}
338338
void hide(MethodCall call, MethodChannel.Result result) {
339339
if (webView != null) {
340-
webView.setVisibility(View.INVISIBLE);
340+
webView.setVisibility(View.GONE);
341341
}
342342
}
343343
void show(MethodCall call, MethodChannel.Result result) {

0 commit comments

Comments
 (0)