diff --git a/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java b/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java index 2d56ad4af..029234564 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java +++ b/android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java @@ -16,6 +16,7 @@ import android.webkit.ValueCallback; import android.webkit.WebChromeClient; import android.webkit.WebView; +import android.view.View; import com.getcapacitor.plugin.camera.CameraUtils; @@ -41,6 +42,17 @@ public class BridgeWebChromeClient extends WebChromeClient { public BridgeWebChromeClient(Bridge bridge) { this.bridge = bridge; } + + @Override + public void onShowCustomView(View view, CustomViewCallback callback) { + callback.onCustomViewHidden(); + super.onShowCustomView(view, callback); + } + + @Override + public void onHideCustomView() { + super.onHideCustomView(); + } @Override public void onPermissionRequest(final PermissionRequest request) {