Skip to content

Commit

Permalink
pause audio/video when swiping away
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Sep 2, 2024
1 parent 2848442 commit 0be1ae9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,13 @@ class PreviewMediaFragment : FileFragment(), OnTouchListener, Injectable {
super.onDetach()
}

override fun onPause() {
mediaPlayerServiceConnection?.pause()
exoPlayer?.pause()

super.onPause()
}

companion object {
private val TAG: String = PreviewMediaFragment::class.java.simpleName

Expand Down

0 comments on commit 0be1ae9

Please sign in to comment.