mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/7000: Fix inverted media telemetry (https://github.com/mozilla-mobile/fenix/pull/7368)
This commit is contained in:
parent
691676a27b
commit
3edfeb2731
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user