[android] package ideographs flag in the offline definition parcel

This commit is contained in:
Łukasz Paczos
2019-07-31 10:23:30 +03:00
parent 45e5e6341e
commit 703c76ada2
2 changed files with 4 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ public class OfflineGeometryRegionDefinition implements OfflineRegionDefinition
this.minZoom = parcel.readDouble();
this.maxZoom = parcel.readDouble();
this.pixelRatio = parcel.readFloat();
this.includeIdeographs = parcel.readByte() != 0;
}
@Override
@@ -159,6 +160,7 @@ public class OfflineGeometryRegionDefinition implements OfflineRegionDefinition
dest.writeDouble(minZoom);
dest.writeDouble(maxZoom);
dest.writeFloat(pixelRatio);
dest.writeByte((byte) (includeIdeographs ? 1 : 0));
}
public static final Creator CREATOR = new Creator() {

View File

@@ -88,6 +88,7 @@ public class OfflineTilePyramidRegionDefinition implements OfflineRegionDefiniti
this.minZoom = parcel.readDouble();
this.maxZoom = parcel.readDouble();
this.pixelRatio = parcel.readFloat();
this.includeIdeographs = parcel.readByte() != 0;
}
@@ -146,6 +147,7 @@ public class OfflineTilePyramidRegionDefinition implements OfflineRegionDefiniti
dest.writeDouble(minZoom);
dest.writeDouble(maxZoom);
dest.writeFloat(pixelRatio);
dest.writeByte((byte) (includeIdeographs ? 1 : 0));
}
public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {