burhanrashid52 / PhotoEditor

A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
MIT License
4.08k stars 983 forks source link

All layers removed after Screen rotate #471

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the bug When I rotate the device screen, all layers like Text, Brush,... are removed because the state is not saved and restored.

To Reproduce

  1. Draw something
  2. Rotate the device

Expected behavior On instance save the current state should saved and restored in onRestoreInstanceState()

Smartphone Info:

Additional context Can anyone help me to save the state of PhotoEditor and PhotoEditorView and restoring it after rotate the device?

burhanrashid52 commented 1 year ago

Duplicate of #302