use of fr.free.nrw.commons.utils.UriSerializer in project apps-android-commons by commons-app.
the class NearbyBaseMarker method writeToParcel.
@Override
public void writeToParcel(Parcel dest, int flags) {
Gson gson = new GsonBuilder().registerTypeAdapter(Uri.class, new UriSerializer()).create();
dest.writeParcelable(position, flags);
dest.writeString(snippet);
dest.writeString(icon.getId());
dest.writeParcelable(icon.getBitmap(), flags);
dest.writeString(title);
dest.writeString(gson.toJson(place));
}
Aggregations