Skip to content

Commit

Permalink
fix #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo committed Jun 12, 2023
1 parent 7d49baa commit 93f5108
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.0.0-beta.24+1

- Fixed "Can't compile on Android" [#1691](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1691)

## 6.0.0-beta.24

- Added InAppWebView keep alive feature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ public boolean onCreateWindow(WebView view, boolean isDialog, boolean isUserGest
}

if (inAppWebView != null && inAppWebView.channelDelegate != null) {
int finalWindowId = windowId;
final int finalWindowId = windowId;
inAppWebView.channelDelegate.onCreateWindow(createWindowAction, new WebViewChannelDelegate.CreateWindowCallback() {
@Override
public boolean nonNullSuccess(@NonNull Boolean handledByClient) {
Expand Down Expand Up @@ -1185,6 +1185,9 @@ private Uri getOutputUri(String intentType) {
Log.e(LOG_TAG, "Error occurred while creating the File", e);
e.printStackTrace();
}
if (capturedFile == null) {
return null;
}

// for versions below 6.0 (23) we use the old File creation & permissions model
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_inappwebview
description: A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.
version: 6.0.0-beta.24
version: 6.0.0-beta.24+1
homepage: https://inappwebview.dev/
repository: https://github.com/pichillilorenzo/flutter_inappwebview
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
Expand Down

0 comments on commit 93f5108

Please sign in to comment.