[Android] Update display subtitle when connected to Android Auto

Robert Stone git at videolan.org
Mon Jun 26 07:45:43 UTC 2023


vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Mon Jun  5 21:10:28 2023 -0700| [0fa806f87ae99b3dc932efbc5d010915a4eeca93] | committer: Robert Stone

Update display subtitle when connected to Android Auto

> https://code.videolan.org/videolan/vlc-android/commit/0fa806f87ae99b3dc932efbc5d010915a4eeca93
---

 application/vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 40edf7d84d..7715a1672b 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -651,7 +651,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner, CoroutineSc
         if (CarConnectionHandler.preferCarConnectionHandler()) {
             carConnectionHandler = CarConnectionHandler(contentResolver)
             carConnectionHandler.connectionType.observeForever {
-                if (it != null) publishState()
+                if (it != null) executeUpdate(true)
             }
         }
 



More information about the Android mailing list