|
...
|
...
|
@@ -273,14 +273,14 @@ public class FlutterWebChromeClient extends WebChromeClient implements PluginReg |
|
|
|
WebViewFlutterPlugin.filePathCallback = callback;
|
|
|
|
|
|
|
|
ArrayList<Parcelable> extraIntents = new ArrayList<>();
|
|
|
|
if (!needsCameraPermission()) {
|
|
|
|
if (acceptsImages(acceptTypes)) {
|
|
|
|
extraIntents.add(getPhotoIntent());
|
|
|
|
}
|
|
|
|
if (acceptsVideo(acceptTypes)) {
|
|
|
|
extraIntents.add(getVideoIntent());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (!needsCameraPermission()) {
|
|
|
|
// if (acceptsImages(acceptTypes)) {
|
|
|
|
// extraIntents.add(getPhotoIntent());
|
|
|
|
// }
|
|
|
|
// if (acceptsVideo(acceptTypes)) {
|
|
|
|
// extraIntents.add(getVideoIntent());
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
Intent fileSelectionIntent = getFileChooserIntent(acceptTypes, allowMultiple);
|
|
|
|
|
...
|
...
|
|