capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

Fix Android Camera crash when opening photo gallery with limit

Open joewoodhouse opened this issue 11 months ago • 0 comments

Prevents a crash where if the user specifies a limit to pickImages that is above the system's maximum limit. Currently supplying a limit value of, say, 10,000 will result in crash with the following exception:

Max items must be less or equals MediaStore.getPickImagesMaxLimit()

This change makes the check as suggested in the error.

joewoodhouse avatar Feb 06 '25 13:02 joewoodhouse