Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] keep OfflineGeometryRegionDefinition fields and constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos authored and Łukasz Paczos committed Aug 28, 2018
1 parent 3027292 commit 1127e35
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;

import com.mapbox.geojson.Feature;
import com.mapbox.geojson.Geometry;
Expand All @@ -21,10 +22,15 @@
*/
public class OfflineGeometryRegionDefinition implements OfflineRegionDefinition, Parcelable {

@Keep
private String styleURL;
@Keep
private Geometry geometry;
@Keep
private double minZoom;
@Keep
private double maxZoom;
@Keep
private float pixelRatio;

/**
Expand All @@ -36,6 +42,7 @@ public class OfflineGeometryRegionDefinition implements OfflineRegionDefinition,
* @param maxZoom max zoom
* @param pixelRatio pixel ratio of the device
*/
@Keep
public OfflineGeometryRegionDefinition(
String styleURL, Geometry geometry, double minZoom, double maxZoom, float pixelRatio) {
// Note: Also used in JNI
Expand Down

0 comments on commit 1127e35

Please sign in to comment.