- ((FrameLayout) activity.getWindow().getDecorView()).removeView(mCustomView);
- mCustomView = null;
- activity.getWindow().getDecorView().setSystemUiVisibility(mOriginalSystemUiVisibility);
- activity.setRequestedOrientation(mOriginalOrientation);
- mCustomViewCallback.onCustomViewHidden();
- mCustomViewCallback = null;
- activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER);
- }
-
- @Override
- public boolean onShowFileChooser(WebView view, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {
- mFilePathCallback = filePathCallback;
- FileUploadNeeded(getIndex(view), fileChooserParams.getAcceptTypes()[0], fileChooserParams.isCaptureEnabled());
- return FileAccess();
- }
-
- @Override
- public boolean onCreateWindow(WebView view, boolean isDialog, boolean isUserGesture, Message resultMsg) {
- if (SupportMultipleWindows()) {
- resultObj = resultMsg;
- OnNewWindowRequest(getIndex(view), isDialog, isUserGesture);