Skip to content

Respect allowMultipleSelection flag for media-text block#10597

Merged
mkevins merged 3 commits intotry/fix-media-text-device-pickerfrom
try/fix-media-text-both-pickers-single-item
Oct 14, 2019
Merged

Respect allowMultipleSelection flag for media-text block#10597
mkevins merged 3 commits intotry/fix-media-text-device-pickerfrom
try/fix-media-text-both-pickers-single-item

Conversation

@mkevins
Copy link
Copy Markdown
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
Copy Markdown

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

@mkevins mkevins requested review from marecar3 and mzorz October 11, 2019 06:11
Copy link
Copy Markdown
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