wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
675 stars 112 forks source link

Make sure placeholders are not drawn twice when activity is destroyed #1021

Closed planarvoid closed 1 year ago

planarvoid commented 1 year ago

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 the mediaLoadingStarted to be called twice. In this PR I'm making sure that doesn't happen.

Test

Review

@khaykov

Make sure strings will be translated:

khaykov commented 1 year ago

Feel free to merge whenever 👍