[Android] Resolve crash in audio player
Robert Stone
git at videolan.org
Mon Jan 24 10:12:35 UTC 2022
vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Fri Jan 21 21:34:16 2022 -0800| [66619a663f3256717f33569b3412ab9290b82b6f] | committer: Robert Stone
Resolve crash in audio player
Fixes #2329
> https://code.videolan.org/videolan/vlc-android/commit/66619a663f3256717f33569b3412ab9290b82b6f
---
application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index 9588265e4..3fe030ee1 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -136,8 +136,8 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
PlayerOptionsDelegate.playerSleepTime.observe(this at AudioPlayer, {
showChips()
})
- Settings.setAudioControlsChangeListener{
- lifecycleScope.launch {
+ Settings.setAudioControlsChangeListener {
+ lifecycleScope.launchWhenStarted {
doUpdate()
}
}
More information about the Android
mailing list