If you have the same video file (tested with mp4) on the same directory name on different storage drives, GalleryPicker.collectGallery throws "Bad state: Too many elements"
For example, if both:
<internal_sd>/sub_dir/vid_parent_dir/video.mp4
<external_sd>/vid_parent_dir/video.mp4
exist, the error gets triggered. The difference in sub directories doesn't matter, only the name of the video files' parent directory.
Even if you make the file names different like "video1.mp4" and "video2.mp4", the error gets triggered.
e.g.
<internal_sd>/sub_dir/vid_parent_dir/video1.mp4
<external_sd>/vid_parent_dir/video2.mp4
If you have the same video file (tested with mp4) on the same directory name on different storage drives, GalleryPicker.collectGallery throws "Bad state: Too many elements"
For example, if both:
<internal_sd>/sub_dir/vid_parent_dir/video.mp4
<external_sd>/vid_parent_dir/video.mp4
exist, the error gets triggered. The difference in sub directories doesn't matter, only the name of the video files' parent directory.
Even if you make the file names different like "video1.mp4" and "video2.mp4", the error gets triggered.
e.g.
<internal_sd>/sub_dir/vid_parent_dir/video1.mp4
<external_sd>/vid_parent_dir/video2.mp4