Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Closes #3013: Reset the legacy-id whenever collectionEnabled is on
Browse files Browse the repository at this point in the history
  • Loading branch information
psymoon committed Jul 14, 2020
1 parent 1979b12 commit 61e8e9e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,17 @@ open class FirefoxApplication : LocaleAwareApplication() {
// sending startup data, or 2) sending even when the user has toggled
// off data collection
Glean.setUploadEnabled(collectionEnabled)
if (collectionEnabled) {
LegacyIds.clientId.set(UUID.fromString(TelemetryIntegration.INSTANCE.clientId))
}
}
}
}

private fun initGlean() {
setGleanUpload()
LegacyIds.clientId.set(UUID.fromString(TelemetryIntegration.INSTANCE.clientId))
Glean.initialize(applicationContext, Configuration(channel = BuildConfig.BUILD_TYPE))
val legacyId = TelemetryIntegration.INSTANCE.clientId
LegacyIds.clientId.set(UUID.fromString(legacyId))
}

// ServiceLocator needs to be created in onCreate in order to accept Application
Expand Down

0 comments on commit 61e8e9e

Please sign in to comment.