[android] #4328 - Adding check of userAgent to see if it's still in initial state before prepending app meta data to it

This commit is contained in:
Brad Leege
2016-03-21 12:32:10 -05:00
parent 4fd80f8c8f
commit 16a58e8e49

View File

@@ -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;
}