diff --git a/android/src/com/mapswithme/maps/bookmarks/data/MapObject.java b/android/src/com/mapswithme/maps/bookmarks/data/MapObject.java index 3f9799e3d2..ad6be2c887 100644 --- a/android/src/com/mapswithme/maps/bookmarks/data/MapObject.java +++ b/android/src/com/mapswithme/maps/bookmarks/data/MapObject.java @@ -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