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
148 stars 18 forks source link

MediaPickResult.Files return a wrong selection order on Android #120

Closed TT702 closed 1 year ago

TT702 commented 1 year ago

Description

My application will ask user to pick some images and put those images on a canvas while maintaining the order they choose.

Everything work perfectly on iOS, "MediaPickResult.Files" return the images using the order that user select. But on Android it seems always return images using a different order instead of the order when user make selection.

Actual Behavior

MediaPicker

When user select images using order such as [6, 9, 13, 1] or [1, 13, 6, 9] or [6, 1, 13, 9]. MediaPickResult.Files always return images using order [13, 1, 9, 6].

Expected behavior

Return the images using the same order as user select [6, 9, 13, 1] or [1, 13, 6, 9] or [6, 1, 13, 9].

Configuration

dimonovdd commented 1 year ago

it does not depend on the plugin in any way. I think the photo is sorted by Photo Picker

TT702 commented 1 year ago

I see... So there is no way that plugin knows the order that user selected?

dimonovdd commented 1 year ago

I do not know the way. you can make a Pull Request if you find the way