Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit bce60f9

Browse files
authored
Call Glean initialize prior to set startup metrtics. (#3130)
1 parent 2454ab2 commit bce60f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/common/shared/org/mozilla/vrbrowser/telemetry/GleanMetricsService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ public static void init(Context aContext) {
4646
initialized = true;
4747

4848
final boolean telemetryEnabled = SettingsStore.getInstance(aContext).isTelemetryEnabled();
49+
Configuration config = new Configuration(Configuration.DEFAULT_TELEMETRY_ENDPOINT, BuildConfig.BUILD_TYPE);
50+
Glean.INSTANCE.initialize(aContext, telemetryEnabled, config);
51+
4952
if (telemetryEnabled) {
5053
GleanMetricsService.start();
5154
} else {
5255
GleanMetricsService.stop();
5356
}
54-
Configuration config = new Configuration(Configuration.DEFAULT_TELEMETRY_ENDPOINT, BuildConfig.BUILD_TYPE);
55-
Glean.INSTANCE.initialize(aContext, true, config);
5657
}
5758

5859
// It would be called when users turn on/off the setting of telemetry.

0 commit comments

Comments
 (0)