dimonovdd / Xamarin.MediaGallery

This plugin is designed to picking and save images and video files from native gallery of Android and iOS devices and capture photos
MIT License
151 stars 18 forks source link

On android the selection limit seems not working #67

Closed softsan closed 3 years ago

softsan commented 3 years ago

Description

I've set selectionLimit to 20 in one of my project, it works fine on iOS but doesn't work on android. Meaning it can allow user to select more then my specified selection limit i.e. 20. await MediaGallery.PickAsync(20, MediaFileType.Image);

Actual Behavior

It allows user to select more than specified selection limit.

Expected behavior

It should restrict user to select the images as specified in selectionLimit parameter. In my case it should not allow to select more than 20 images

Steps to reproduce the behavior

Screenshots or Videos

Screenshot 2021-10-28 at 1 32 17 AM

Reproduction Link

Configuration

dimonovdd commented 3 years ago

Please read Readme file

When using the PickAsync method the selectionLimit parameter just sets multiple pick allowed

https://github.com/dimonovdd/Xamarin.MediaGallery/discussions/40