Matisse
Matisse copied to clipboard
Hide unsupported media types
Hello, There is any way to hide all unsupported media types? If my mimeSet, contains only Gif, I want the user to see only the gif files instead of all the photos,
Thanks in advance
hi, there is a way to do what you ask, I believe:
mimeTypes.addAll(MimeType.ofImage())
mimeTypes.addAll(MimeType.ofVideo())
Then you can go:
Matisse.from(this)
.choose(mimeTypes, false)
Hope this helps you. By the way, allowed ones are an enum like so:
EnumSet.of(JPEG, PNG, GIF, BMP, WEBP)
It's still shows me all files (but disabled..)
...
.showSingleMediaType(true)
.forResult(PICK_IMAGE_REQUEST);