When the "Don't keep activities" is turned on and the user leaves the editor and comes back (for example to open a camera and take a photo), the placeholders are redrawn because the toHtml is called twice and this triggers the mediaLoadingStarted to be called twice. In this PR I'm making sure that doesn't happen.
Test
Test this in the linked PR
Review
@khaykov
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
When the "Don't keep activities" is turned on and the user leaves the editor and comes back (for example to open a camera and take a photo), the placeholders are redrawn because the
toHtml
is called twice and this triggers themediaLoadingStarted
to be called twice. In this PR I'm making sure that doesn't happen.Test
Review
@khaykov
Make sure strings will be translated:
strings.xml
as a part of the integration PR.