Skip to content

Commit

Permalink
Fixed mime filters in UWP openGallery when using multi-selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Aug 16, 2018
1 parent 7042789 commit b490ac4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2375,14 +2375,14 @@ public override void openGallery(ActionListener response, int type)
}
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
if (type == Display.GALLERY_IMAGE)
if (type == Display.GALLERY_IMAGE || type == Display.GALLERY_IMAGE_MULTI)
{
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.FileTypeFilter.Add(".jpeg");
openPicker.FileTypeFilter.Add(".png");
} else if (type == Display.GALLERY_VIDEO)
} else if (type == Display.GALLERY_VIDEO || type == Display.GALLERY_VIDEO_MULTI)
{
openPicker.FileTypeFilter.Add(".mp4");
openPicker.FileTypeFilter.Add(".avi");
Expand Down

1 comment on commit b490ac4

@shannah
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref #2383

Please sign in to comment.