android-signaturepad
android-signaturepad copied to clipboard
The SignaturePad becomes null on rotation in fragment
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.
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"?
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?
same here!
there is a PR (https://github.com/gcacace/android-signaturepad/pull/117) trying to fix that, however it needs to be checked
Regards.