[Android] Fix "play as video" state when changing playlist mode

Nicolas Pomepuy git at videolan.org
Tue Sep 7 07:36:37 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Sep  6 10:13:55 2021 +0200| [5be064e94a8f2b8df7a03370def91b47d71bd96f] | committer: Nicolas Pomepuy

Fix "play as video" state when changing playlist mode

Fixes #2164

> https://code.videolan.org/videolan/vlc-android/commit/5be064e94a8f2b8df7a03370def91b47d71bd96f
---

 application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 1 +
 1 file changed, 1 insertion(+)

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 0107910f3..82d2cc08b 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
@@ -489,6 +489,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
         switchShowCover()
         settings.putSingle("audio_player_show_cover", isShowingCover())
         binding.playlistSwitch.setImageResource(if (isShowingCover()) R.drawable.ic_playlist_audio else R.drawable.ic_playlist_audio_on)
+        lifecycleScope.launch { doUpdate() }
     }
 
     fun onShuffleClick(view: View) {



More information about the Android mailing list