mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
feat(playback): pause media playback when screen is in the background
This commit is contained in:
@@ -48,7 +48,9 @@ class PlayerActivity : ComponentActivity() {
|
||||
|
||||
override fun onPause() {
|
||||
super.onPause()
|
||||
viewModel.pausePlayback()
|
||||
if (!isChangingConfigurations) {
|
||||
viewModel.pausePlayback()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
||||
Reference in New Issue
Block a user