Message compose: support completion of list of recipients #8994
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for creating a wonderful piece of software!
This fixes #5199, which I chose to implement because it was tagged "good first issue".
This PR adds support to the message compose screen for completing entire lists of recipient addresses, rather than just a single address. This way, the user can paste in comma/semicolon delimited address lists. It uses the existing functionality of parsing lists of addresses.
The other way of implementing the feature of pasting in lists of addresses is overriding the paste behavior for the input, and then virtually inserting the pasted characters one by one. However, I considered this method pretty hacky, and I also wanted to use the existing support for parsing lists of addresses.
Unfortunately, this could not be implemented in Kotlin as I was not in the mood to refactor ~2000 lines of Java.
android_thunderbird_compose_paste_list_demo.webm