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 {
|
play_pause_button.setOnClickListener {
|
||||||
when (tab?.mediaState) {
|
when (tab?.mediaState) {
|
||||||
is MediaState.Playing -> {
|
is MediaState.Playing -> {
|
||||||
it.context.components.analytics.metrics.track(Event.TabMediaPlay)
|
it.context.components.analytics.metrics.track(Event.TabMediaPause)
|
||||||
interactor.onPauseMediaClicked()
|
interactor.onPauseMediaClicked()
|
||||||
}
|
}
|
||||||
|
|
||||||
is MediaState.Paused -> {
|
is MediaState.Paused -> {
|
||||||
it.context.components.analytics.metrics.track(Event.TabMediaPause)
|
it.context.components.analytics.metrics.track(Event.TabMediaPlay)
|
||||||
interactor.onPlayMediaClicked()
|
interactor.onPlayMediaClicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user