From 3edfeb273167c931e6a8c6bf277e66ef492a8340 Mon Sep 17 00:00:00 2001 From: Sawyer Blatz Date: Fri, 27 Dec 2019 13:46:47 -0800 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/7000: Fix inverted media telemetry (https://github.com/mozilla-mobile/fenix/pull/7368) --- .../fenix/home/sessioncontrol/viewholders/TabViewHolder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/TabViewHolder.kt b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/TabViewHolder.kt index 98d80dafba..d29d8ebfe7 100644 --- a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/TabViewHolder.kt +++ b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/TabViewHolder.kt @@ -51,12 +51,12 @@ class TabViewHolder( play_pause_button.setOnClickListener { when (tab?.mediaState) { is MediaState.Playing -> { - it.context.components.analytics.metrics.track(Event.TabMediaPlay) + it.context.components.analytics.metrics.track(Event.TabMediaPause) interactor.onPauseMediaClicked() } is MediaState.Paused -> { - it.context.components.analytics.metrics.track(Event.TabMediaPause) + it.context.components.analytics.metrics.track(Event.TabMediaPlay) interactor.onPlayMediaClicked() } }