summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Guardiola <guardiola31337@gmail.com>2017-06-21 15:18:21 +0200
committerGitHub <noreply@github.com>2017-06-21 15:18:21 +0200
commit2deba0f1f0f7c7c4bee8c14bd9fbcbd3d66b3fda (patch)
tree8d01f3879d4569e17a348250f7fd78537bfd9fa3
parent7e8bdadb91010b83cea7e8bad7a4e7a2488a91f6 (diff)
downloadqtlocation-mapboxgl-2deba0f1f0f7c7c4bee8c14bd9fbcbd3d66b3fda.tar.gz
[android] annotate Mapbox class with @UiThread to make clear that it is required to be started from the main thread as it loads the native library for connectivity change events (#9309)
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java1
1 files changed, 1 insertions, 0 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 81134e9497..bc1049d146 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
@@ -24,6 +24,7 @@ import com.mapbox.services.android.telemetry.location.LocationEnginePriority;
* connectivity state.
* </p>
*/
+@UiThread
public final class Mapbox {
private static Mapbox INSTANCE;