Open PieterPicup opened 4 years ago
I can confirm the crash is coming from inside Signature.java$onSaveInstanceState() method. I attached a debugger in there and set bundle as null at the end the crash didn't happen.
Preserving the state is important but I think @gcacace should come up with a better way to save bitmap into state.
@PieterPicup @bismarabia We just created a fork and published with the fix keeping the state saving. For use it you should:
Set jitpack.io url on your project's build.gradle
allprojects {
repositories {
google()
maven { url "https://jitpack.io" }
}
}
and then, add into your depedencies this:
implementation 'com.github.prologapp:android-signaturepad:1.0.0'
Saving state sometimes caused android.os.TransactionTooLargeException. If users do not require state saving it can be turned off.