summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2016-03-21 12:32:10 -0500
committerBrad Leege <bleege@gmail.com>2016-03-21 15:08:42 -0500
commit1856b3aeeaf7ea11621cb11ea4b9a7b10d076cc2 (patch)
tree5bd5f972cd1241d7b526f5b63d2adf8190a20587 /platform/android
parent967b6c7248e0b8986d3f3d7f6aa94065d548555c (diff)
downloadqtlocation-mapboxgl-1856b3aeeaf7ea11621cb11ea4b9a7b10d076cc2.tar.gz
[android] #4328 - Adding check of userAgent to see if it's still in initial state before prepending app meta data to it
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java
index 7ac42b8266..fb98903c8f 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java
@@ -156,7 +156,7 @@ public class MapboxEventManager {
}
// Build User Agent
- if (!TextUtils.isEmpty(appName) && !TextUtils.isEmpty(versionName)) {
+ if (TextUtils.equals(userAgent, BuildConfig.MAPBOX_EVENTS_USER_AGENT_BASE) && !TextUtils.isEmpty(appName) && !TextUtils.isEmpty(versionName)) {
userAgent = appName + "/" + versionName + "/" + versionCode + " " + userAgent;
}