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 f13e41d commit 0d69db1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,11 +755,7 @@ class PreviewMediaActivity :
}
}


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

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

0 comments on commit 0d69db1

Please sign in to comment.