Bug 1849226: Record bookmark telemetry when Unified Search result tap

Searching through bookmarks using unified search, when a suggestion
is tapped, the bookmarks_management.search_result_tapped event is
sent.
fenix/120.0
DreVla 8 months ago committed by mergify[bot]
parent 0ad4626c65
commit 7f8ca21fe8

@ -16,6 +16,7 @@ import mozilla.components.compose.browser.awesomebar.AwesomeBarOrientation
import mozilla.components.concept.awesomebar.AwesomeBar
import mozilla.components.service.glean.private.NoExtras
import mozilla.components.support.ktx.android.view.hideKeyboard
import org.mozilla.fenix.GleanMetrics.BookmarksManagement
import org.mozilla.fenix.GleanMetrics.History
import org.mozilla.fenix.R
import org.mozilla.fenix.ext.components
@ -68,6 +69,9 @@ class AwesomeBarWrapper @JvmOverloads constructor(
suggestion.flags.contains(AwesomeBar.Suggestion.Flag.HISTORY) -> {
History.searchResultTapped.record(NoExtras())
}
suggestion.flags.contains(AwesomeBar.Suggestion.Flag.BOOKMARK) -> {
BookmarksManagement.searchResultTapped.record(NoExtras())
}
}
onStopListener?.invoke()
},

Loading…
Cancel
Save