2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00
This commit is contained in:
Sawyer Blatz 2019-12-27 13:46:47 -08:00 committed by GitHub
parent 691676a27b
commit 3edfeb2731

View File

@ -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()
}
}