-
Notifications
You must be signed in to change notification settings - Fork 5
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
Chord unparcelizing / deserializing throws SerializationException #8
Comments
Tl;DR: this might be an issue with the serialization/parcelable library, but I'm not sure so I put the issue here. Making |
I converted over this library to use my |
@cullub The solution was rather simple. It seems my |
Great! @chRyNaN any chance we can get a v2.4.1 bugfix release with these changes? |
As it turns out, in my code I had only been using this feature in one place, and was able to replace it with another method, but the other couple things ( #11 specifically) are still needed for my latest update |
@cullub Yes, I'll get another release out tonight. |
Version |
Describe the bug
When I call
com.chrynan.chords.util.putChord(key, chord)
to put a chord in aBundle()
, then later callbundle.getChord(key)
, the chords library throws a SerializationException ("Expected Json Decoder").To Reproduce
Here's my code putting the chord in a Bundle:
And here's the get:
arguments?.getChord(KEY_CHORD)
Expected behavior
The chord should be retrieved.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Stacktrace
Additional context
getChord()
uses com.chrynan.parcelable and calls (eventually) ChordMarkerJsonSerializer.deserialize, but calls it with a com.chrynan.parcelable.core.ParcelDecoder. That doesn't implementJsonDecoder
, soChordMarkerJsonSerializer.kt
throws a SerializationException.For reference, I'm working on TabsLite.
The text was updated successfully, but these errors were encountered: