[Android] Properly exit parsing service on init

Geoffrey Métais git at videolan.org
Thu Oct 5 10:32:18 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Oct  5 10:31:28 2017 +0200| [1f49ac361b5aeb41e0a72690a1a48e531730b837] | committer: Geoffrey Métais

Properly exit parsing service on init

> https://code.videolan.org/videolan/vlc-android/commit/1f49ac361b5aeb41e0a72690a1a48e531730b837
---

 vlc-android/src/org/videolan/vlc/MediaParsingService.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 03a210aa8..9e2e0322b 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -244,6 +244,8 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
                             mMedialibrary.forceParserRetry();
                         else if (PreferenceManager.getDefaultSharedPreferences(MediaParsingService.this).getBoolean("auto_rescan", true))
                             reload(null);
+                        else
+                            exitCommand();
                     }
                 }
 



More information about the Android mailing list