android-signaturepad
android-signaturepad copied to clipboard
saving instance state may throw due to zero bounds
on rare occasions
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:829)
at android.graphics.Bitmap.createBitmap(Bitmap.java:808)
at android.graphics.Bitmap.createBitmap(Bitmap.java:775)
at com.github.gcacace.signaturepad.views.SignaturePad.d()
at com.github.gcacace.signaturepad.views.SignaturePad.getTransparentSignatureBitmap()
at com.github.gcacace.signaturepad.views.SignaturePad.onSaveInstanceState()
Having the same issue when the view Visibility is GONE and close the fragment will crash.
Any idea how to mitigate this ?
as long as this is not merged, you could use com.github.masc3d:android-signaturepad:b60f117e
instead.
requires jitpack repository maven { url 'https://jitpack.io' }
Any news about merging this PR?
I saw this PR is merged, but not showing on v1.3.1 when import using gradle?
I am also encountering this issue on v1.3.1
. @masc3d What is the status of the fix?
i have same issue , is this issue fixed?
Here's a temporary fix I did to prevent this - Add android:saveEnabled="false"
to the xml layout
<com.github.gcacace.signaturepad.views.SignaturePad
android:id="@+id/signature_pad"
android:saveEnabled="false"
...
/>