You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks to me like History instances can be serialized and unserialized to parcels/bundles but not to String, which is surprising because IMO saving/restoring History to persistant storage should be a pretty common need (say, you want users to be able to find the app in the same state it was before a power down/a previous session)
In addition of StateParceler, Paths could optionaly implement
public interface StateToString {
String wrap(Object instance);
Object unwrap(String sring);
}
which would allow the implementation of 2 utillity methods to serialize/deserialize from String
Also, Gson should already be able to serialize/deserialize simple paths...but those utility methods aren't implemented in the GsonParceler
mmmhhh iterate the History and serialize each entry as an Object...and deserialize a list of Object into an History with a builder
The text was updated successfully, but these errors were encountered:
It looks to me like History instances can be serialized and unserialized to parcels/bundles but not to String, which is surprising because IMO saving/restoring History to persistant storage should be a pretty common need (say, you want users to be able to find the app in the same state it was before a power down/a previous session)
In addition of StateParceler, Paths could optionaly implement
public interface StateToString {
String wrap(Object instance);
Object unwrap(String sring);
}
which would allow the implementation of 2 utillity methods to serialize/deserialize from String
Also, Gson should already be able to serialize/deserialize simple paths...but those utility methods aren't implemented in the GsonParceler
mmmhhh iterate the History and serialize each entry as an Object...and deserialize a list of Object into an History with a builder
The text was updated successfully, but these errors were encountered: