diff options
author | Pablo Guardiola <guardiola31337@gmail.com> | 2018-02-16 22:12:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 22:12:45 +0100 |
commit | 604931247e8c78570058981ea17c034947c4430f (patch) | |
tree | 3352de4614d09c1f10e5ee9c2aaa70ad076c831e /platform/android/MapboxGLAndroidSDK/src/main/java/com | |
parent | 12103c95c03c8111995dd2ef4b9c7fb8ab671252 (diff) | |
download | qtlocation-mapboxgl-604931247e8c78570058981ea17c034947c4430f.tar.gz |
[android] initialize events when creating mapbox instance (#11211)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java | 2 | ||||
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Events.java | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java index 536f5d02ab..e963993ae3 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java @@ -13,6 +13,7 @@ import com.mapbox.android.core.location.LocationEnginePriority; import com.mapbox.android.core.location.LocationEngineProvider; import com.mapbox.mapboxsdk.constants.MapboxConstants; import com.mapbox.mapboxsdk.exceptions.MapboxConfigurationException; +import com.mapbox.mapboxsdk.maps.Events; import com.mapbox.mapboxsdk.net.ConnectivityReceiver; /** @@ -52,6 +53,7 @@ public final class Mapbox { INSTANCE = new Mapbox(appContext, accessToken, locationEngine); locationEngine.setPriority(LocationEnginePriority.NO_POWER); + Events.initiliaze(); ConnectivityReceiver.instance(appContext); } diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Events.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Events.java index a68d4763ac..a4f6b233cf 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Events.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Events.java @@ -6,7 +6,7 @@ import com.mapbox.android.telemetry.TelemetryEnabler; import com.mapbox.mapboxsdk.BuildConfig; import com.mapbox.mapboxsdk.Mapbox; -class Events { +public class Events { static final String TWO_FINGER_TAP = "TwoFingerTap"; static final String DOUBLE_TAP = "DoubleTap"; static final String SINGLE_TAP = "SingleTap"; @@ -26,6 +26,10 @@ class Events { } } + public static void initiliaze() { + obtainTelemetry(); + } + private static class EventsHolder { private static final Events INSTANCE = new Events(); } |