From b4494e67061435845991dc6a8d3005efbcabbb5c Mon Sep 17 00:00:00 2001 From: mcarare Date: Fri, 15 Apr 2022 17:25:37 +0300 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/24206: Fix extra key values for context menu metrics. --- .../mozilla/fenix/components/metrics/MetricController.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt index b6e78fcac1..b65cfd72da 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt @@ -152,9 +152,9 @@ internal class ReleaseMetricController( } Component.FEATURE_CONTEXTMENU to ContextMenuFacts.Items.ITEM -> { - metadata?.get("item")?.let { - contextMenuAllowList[item]?.let { - ContextMenu.itemTapped.record(ContextMenu.ItemTappedExtra(it)) + metadata?.get("item")?.let { item -> + contextMenuAllowList[item]?.let { extraKey -> + ContextMenu.itemTapped.record(ContextMenu.ItemTappedExtra(extraKey)) } } Unit