This PR fixes a crash that's happening when a media item is removed in the middle of a paragraph. The fix is to ignore the spans that are wrapping the media, only to handle the ones starting right after the media end.
Test
Run the unit tests without the fix
Notice the PARAGRAPH span must start at paragraph boundary exception
Run the unit tests with the fix
Review
@danilo04
Make sure strings will be translated:
[x] If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.
Fix
This PR fixes a crash that's happening when a media item is removed in the middle of a paragraph. The fix is to ignore the spans that are wrapping the media, only to handle the ones starting right after the media end.
Test
PARAGRAPH span must start at paragraph boundary
exceptionReview
@danilo04
Make sure strings will be translated:
strings.xml
as a part of the integration PR.