Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SignaturePad becomes null on rotation in fragment #102

Open
mptrista opened this issue Nov 10, 2017 · 3 comments
Open

The SignaturePad becomes null on rotation in fragment #102

mptrista opened this issue Nov 10, 2017 · 3 comments

Comments

@mptrista
Copy link

We have an activity with ViewPager with fragments.
In one of the fragments we have a SignaturePad.
The signature pad become null after rotation.
Despite that the user signature stays on screen.

@gcacace
Copy link
Owner

gcacace commented Feb 24, 2018

Hello,

when you rotate the screen, the fragment is destroyed and needs to be recreated. We have code to store the internal state of the signature pad in the memory. Could you please be more specific on "the signature pad become null"?

@ghost
Copy link

ghost commented Sep 16, 2018

Hello,

For sure the save and restore instance is not working correctly. Svg data are lost. After restoring the method getSignatureSvg() does returns an empty SVG.

What about to save and restore the svg data and redraw on the canvas (bitmap) from the svg data?

@eriknyk
Copy link

eriknyk commented Oct 18, 2018

same here!

there is a PR (#117) trying to fix that, however it needs to be checked

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants