Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #4328 - Adding check of userAgent to see if it's still in i…
Browse files Browse the repository at this point in the history
…nitial state before prepending app meta data to it
  • Loading branch information
bleege committed Mar 21, 2016
1 parent 4fd80f8 commit 16a58e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void initialize(@NonNull Context context, @NonNull String accessToken) {
}

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

Expand Down

0 comments on commit 16a58e8

Please sign in to comment.