mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-01 23:33:54 +01:00
Fix DNG/RAW Upload Error (#5543)
* Fix DNG/RAW Upload Error * Fix DNG/RAW Upload Error * supported formats added * cleanup
This commit is contained in:
parent
1cbce77d5f
commit
2d5b7cc579
2 changed files with 15 additions and 4 deletions
|
|
@ -48,8 +48,11 @@ public class FilePicker implements Constants {
|
|||
boolean openDocumentIntentPreferred) {
|
||||
// storing picked image type to shared preferences
|
||||
storeType(context, type);
|
||||
//Supported types are SVG, PNG and JPEG,GIF, TIFF, WebP, XCF
|
||||
final String[] mimeTypes = { "image/jpg","image/png","image/jpeg", "image/gif", "image/tiff", "image/webp", "image/xcf", "image/svg+xml", "image/webp"};
|
||||
return plainGalleryPickerIntent(openDocumentIntentPreferred)
|
||||
.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, configuration(context).allowsMultiplePickingInGallery());
|
||||
.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, configuration(context).allowsMultiplePickingInGallery())
|
||||
.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -401,4 +404,4 @@ public class FilePicker implements Constants {
|
|||
|
||||
void onCanceled(FilePicker.ImageSource source, int type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue