[Android] Respect "auto rescan" setting on app launch

Geoffrey Métais git at videolan.org
Wed May 17 12:04:23 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 16 17:23:02 2017 +0200| [997eb1b8a7b1cabddcf25b3420ab224d3d7c8457] | committer: Geoffrey Métais

Respect "auto rescan" setting on app launch

> https://code.videolan.org/videolan/vlc-android/commit/997eb1b8a7b1cabddcf25b3420ab224d3d7c8457
---

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

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 1dac2d8..f1bf05c 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -221,7 +221,7 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
                             mMedialibrary.discover(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
                         } else if (upgrade)
                             mMedialibrary.forceParserRetry();
-                        else
+                        else if (PreferenceManager.getDefaultSharedPreferences(MediaParsingService.this).getBoolean("auto_rescan", true))
                             reload(null);
                     }
                 }



More information about the Android mailing list