Android-FilePicker
Android-FilePicker copied to clipboard
showGifs(false) method does not avoid from picking gif files
Even if I use showGifs(false); method I still can pick gif files. Could you please fix this?
Are you sure? Because I am not able to see any gifs if I disabled it in the app sample.
Yes, it disables only recently added gifs. But if gifs are present in storage and there are also lots of files that were added after that gif file - it would be seen. It was checked on Huawei P5 and Nexus 5X
Can you check their paths? Actually filepicker use below code to check gifs:
if (path != null && path.toLowerCase().endsWith("gif")) {
if (PickerManager.getInstance().isShowGif()) {
photoDirectory.addPhoto(imageId, fileName, path, mediaType);
}
} else {
photoDirectory.addPhoto(imageId, fileName, path, mediaType);
}
yes it's path ends with ".gif" but it is still shown, don't know why, it skips this check if user has to swipe down to see gif files