[Android] DiscoveryDeviceCheck: remove exitCommand

Duncan McNamara git at videolan.org
Tue Apr 19 08:46:38 UTC 2022


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Fri Apr 15 18:00:07 2022 +0200| [7d3c050842a7edd6c47f44c2de4abc7b981ba534] | committer: Nicolas Pomepuy

DiscoveryDeviceCheck: remove exitCommand

If the path starts with an already known device path, addDeviceIfNeeded
should return without re-adding the path to the medialibrary, but not
kill the service as discovery will still happen afterwards, and with the
service killed there won't be any progress updates.

> https://code.videolan.org/videolan/vlc-android/commit/7d3c050842a7edd6c47f44c2de4abc7b981ba534
---

 application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt b/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
index 29a0169fe..1f9f37dbd 100644
--- a/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
@@ -222,7 +222,6 @@ class MediaParsingService : LifecycleService(), DevicesDiscoveryCb {
     private fun addDeviceIfNeeded(path: String) {
         for (devicePath in medialibrary.devices) {
             if (path.startsWith(devicePath.removeFileProtocole())) {
-                exitCommand()
                 return
             }
         }



More information about the Android mailing list