summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2018-08-24 18:37:26 +0200
committerŁukasz Paczos <lukas.paczos@gmail.com>2018-08-24 18:37:26 +0200
commit75d851d4a2c193b0d647937d25dcd90d432fd812 (patch)
tree9293d94857a5c7d77dc485d8872bcffe552a9559
parent0f58d956d7b525f3722f24494784c8b97801105a (diff)
downloadqtlocation-mapboxgl-upstream/lp-keep-offline-geometry-fields.tar.gz
[android] keep OfflineGeometryRegionDefinition fields and constructorupstream/lp-keep-offline-geometry-fields
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineGeometryRegionDefinition.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineGeometryRegionDefinition.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineGeometryRegionDefinition.java
index 0db3ee3202..73e277dda3 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineGeometryRegionDefinition.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineGeometryRegionDefinition.java
@@ -2,6 +2,7 @@ package com.mapbox.mapboxsdk.offline;
import android.os.Parcel;
import android.os.Parcelable;
+import android.support.annotation.Keep;
import com.mapbox.geojson.Feature;
import com.mapbox.geojson.Geometry;
@@ -21,10 +22,15 @@ import com.mapbox.turf.TurfMeasurement;
*/
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;
/**
@@ -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