Skip to content

Commit

Permalink
No need file type check to stop exoPlayer, service
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Jul 30, 2024
1 parent f7f2cdc commit f13e41d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,11 @@ class PreviewMediaActivity :
}
}

exoPlayer?.pause()

if (exoPlayer?.isPlaying == true) {
exoPlayer?.pause()
}

stopAudio()
mediaPlayerServiceConnection?.unbind()
super.onStop()
Expand Down

0 comments on commit f13e41d

Please sign in to comment.