Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 60aca8c

Browse files
committed
Fix formatting
1 parent 948eecb commit 60aca8c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • packages/webview_flutter/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter

packages/webview_flutter/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterWebView.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ public boolean onShowFileChooser(
8686
// don't use fileChooserParams.getTitle() as it is (always? on Mi 9T Pro Android 10 at least) null
8787
// don't use fileChooserParams.isCaptureEnabled() as it is (always? on Mi 9T Pro Android 10 at least) false, even when the file upload allows images or any file
8888
final Context context = webView.getContext();
89-
final boolean allowMultipleFiles = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
89+
final boolean allowMultipleFiles =
90+
Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
9091
&& fileChooserParams.getMode() == FileChooserParams.MODE_OPEN_MULTIPLE;
91-
final String[] acceptTypes = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
92-
? fileChooserParams.getAcceptTypes() : new String[0];
93-
new FileChooserLauncher(context, allowMultipleFiles, filePathCallback, acceptTypes)
94-
.start();
92+
final String[] acceptTypes =
93+
Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
94+
? fileChooserParams.getAcceptTypes()
95+
: new String[0];
96+
new FileChooserLauncher(context, allowMultipleFiles, filePathCallback, acceptTypes).start();
9597
return true;
9698
}
9799

0 commit comments

Comments
 (0)