[android] Fixed mapobject serialization

This commit is contained in:
Alexander Zatsepin 2018-08-16 15:21:29 +03:00 committed by Roman Kuznetsov
parent 63bf65ef65
commit c76bddaac3

View file

@ -449,10 +449,12 @@ public class MapObject implements Parcelable, PopularityProvider
dest.writeInt(mCanBeReviewed ? 1 : 0);
dest.writeParcelable(mHotelType, 0);
dest.writeInt(mPriceRate);
dest.writeParcelable(mPopularity, 0);
// All collections are deserialized AFTER non-collection and primitive type objects,
// so collections must be always serialized at the end.
dest.writeTypedList(mBanners);
dest.writeList(mReachableByTaxiTypes);
dest.writeTypedList(mRatings);
dest.writeParcelable(mPopularity, 0);
}
@Override