Fix AMapPoint backward compatibility

This commit is contained in:
crimean 2019-07-06 19:49:20 +03:00
parent d748e71b4c
commit ed76ed4040
2 changed files with 4 additions and 4 deletions

View file

@ -100,11 +100,11 @@ public class AMapPoint implements Parcelable {
out.writeString(shortName); out.writeString(shortName);
out.writeString(fullName); out.writeString(fullName);
out.writeString(typeName); out.writeString(typeName);
out.writeString(layerId);
out.writeInt(color); out.writeInt(color);
out.writeParcelable(location, flags); out.writeParcelable(location, flags);
out.writeStringList(details); out.writeStringList(details);
out.writeMap(params); out.writeMap(params);
out.writeString(layerId);
} }
private void readFromParcel(Parcel in) { private void readFromParcel(Parcel in) {
@ -112,11 +112,11 @@ public class AMapPoint implements Parcelable {
shortName = in.readString(); shortName = in.readString();
fullName = in.readString(); fullName = in.readString();
typeName = in.readString(); typeName = in.readString();
layerId = in.readString();
color = in.readInt(); color = in.readInt();
location = in.readParcelable(ALatLon.class.getClassLoader()); location = in.readParcelable(ALatLon.class.getClassLoader());
in.readStringList(details); in.readStringList(details);
in.readMap(params, HashMap.class.getClassLoader()); in.readMap(params, HashMap.class.getClassLoader());
layerId = in.readString();
} }
public int describeContents() { public int describeContents() {

View file

@ -100,11 +100,11 @@ public class AMapPoint implements Parcelable {
out.writeString(shortName); out.writeString(shortName);
out.writeString(fullName); out.writeString(fullName);
out.writeString(typeName); out.writeString(typeName);
out.writeString(layerId);
out.writeInt(color); out.writeInt(color);
out.writeParcelable(location, flags); out.writeParcelable(location, flags);
out.writeStringList(details); out.writeStringList(details);
out.writeMap(params); out.writeMap(params);
out.writeString(layerId);
} }
private void readFromParcel(Parcel in) { private void readFromParcel(Parcel in) {
@ -112,11 +112,11 @@ public class AMapPoint implements Parcelable {
shortName = in.readString(); shortName = in.readString();
fullName = in.readString(); fullName = in.readString();
typeName = in.readString(); typeName = in.readString();
layerId = in.readString();
color = in.readInt(); color = in.readInt();
location = in.readParcelable(ALatLon.class.getClassLoader()); location = in.readParcelable(ALatLon.class.getClassLoader());
in.readStringList(details); in.readStringList(details);
in.readMap(params, HashMap.class.getClassLoader()); in.readMap(params, HashMap.class.getClassLoader());
layerId = in.readString();
} }
public int describeContents() { public int describeContents() {