Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect allowMultipleSelection flag for media-text block #10597

Conversation

mkevins
Copy link
Contributor

@mkevins mkevins commented Oct 11, 2019

Fixes wordpress-mobile/gutenberg-mobile#1403

Description

This PR adds a GUTENBERG_SINGLE_MEDIA_PICKER MediaBrowserType, which is used to respect the allowMultipleSelection flag within the MediaBrowserActivity.

To test:

Follow steps listed here: WordPress/gutenberg#17537 (comment)
and make sure videos and images can be selected from the picker after choosing "Choose from device".

Also, it should be possible to select videos and images after selecting "WordPress Media Library".

When selecting via "WordPress Media Library", only a single item should be selectable. When tapping a video or image, the item should be inserted into the media-text block (without allowing multiple items to be selected).

Screencasts

Single Image Single Video

PR submission checklist:

  • I have considered adding unit tests where possible.

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

You can test the changes on this Pull Request by downloading the APK here.

Copy link
Contributor

@marecar3 marecar3 left a comment

Choose a reason for hiding this comment

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

Hey, @mkevins nice work here!
Approved :)
cc: @pinarol

@mkevins mkevins merged commit c16f4cc into try/fix-media-text-device-picker Oct 14, 2019
@mkevins mkevins deleted the try/fix-media-text-both-pickers-single-item branch October 14, 2019 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants