From 355cb35cb645f61ee88cdc83cb34061daefd4de0 Mon Sep 17 00:00:00 2001 From: Mihai Adrian <48995920+mcarare@users.noreply.github.com> Date: Tue, 21 Jan 2020 18:24:18 +0200 Subject: [PATCH] For #7574: Send toolbar position metrics in English. (#7712) --- .../fenix/components/metrics/GleanMetricsService.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt index 6b5032d04..0030196b1 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt @@ -507,7 +507,13 @@ class GleanMetricsService(private val context: Context) : MetricsService { mozillaProducts.set(MozillaProductDetector.getInstalledMozillaProducts(context)) adjustCampaign.set(context.settings().adjustCampaignId) totalUriCount.set(context.settings().totalUriCount.toString()) - toolbarPosition.set(context.settings().toolbarSettingString) + toolbarPosition.set( + if (context.settings().shouldUseBottomToolbar) { + Event.ToolbarPositionChanged.Position.BOTTOM.name + } else { + Event.ToolbarPositionChanged.Position.TOP.name + } + ) } SearchDefaultEngine.apply {