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

Commit 717efee

Browse files
authored
Revert "Call Glean initialize prior to set startup metrtics. (#3130)" (#3145)
This reverts commit bce60f9.
1 parent ec3b681 commit 717efee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,13 @@ 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-
5249
if (telemetryEnabled) {
5350
GleanMetricsService.start();
5451
} else {
5552
GleanMetricsService.stop();
5653
}
54+
Configuration config = new Configuration(Configuration.DEFAULT_TELEMETRY_ENDPOINT, BuildConfig.BUILD_TYPE);
55+
Glean.INSTANCE.initialize(aContext, true, config);
5756
}
5857

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

0 commit comments

Comments
 (0)