Skip to content

Commit 292f608

Browse files
author
Alexander Krupnov
authored
Fix Hide/Show WebView
1 parent 5d5316f commit 292f608

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
@@ -228,7 +228,7 @@ void openUrl(
228228
}
229229

230230
if (hidden) {
231-
webView.setVisibility(View.INVISIBLE);
231+
webView.setVisibility(View.GONE);
232232
}
233233

234234
if (clearCookies) {
@@ -325,7 +325,7 @@ boolean canGoForward() {
325325
}
326326
void hide(MethodCall call, MethodChannel.Result result) {
327327
if (webView != null) {
328-
webView.setVisibility(View.INVISIBLE);
328+
webView.setVisibility(View.GONE);
329329
}
330330
}
331331
void show(MethodCall call, MethodChannel.Result result) {

0 commit comments

Comments
 (0)