Commit d1c5671052efb8f8f25e7a092fabc21732dd88a4

Authored by wdn127929
1 parent 8376f501

相机关

... ... @@ -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);
... ...