[Android] Unban whatsapp folder on upgrade

Geoffrey Métais git at videolan.org
Wed Dec 6 15:13:13 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Dec  6 14:54:10 2017 +0100| [278eb21eb7255e3675a5f5823e279cee2f862812] | committer: Geoffrey Métais

Unban whatsapp folder on upgrade

> https://code.videolan.org/videolan/vlc-android/commit/278eb21eb7255e3675a5f5823e279cee2f862812
---

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

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index e0dfb8013..9f18d12c5 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -245,9 +245,10 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
                             for (String folder : Medialibrary.getBlackList())
                                 mMedialibrary.banFolder(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY + folder);
                             mMedialibrary.discover(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
-                        } else if (upgrade)
+                        } else if (upgrade) {
+                            mMedialibrary.unbanFolder(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY+ "/WhatsApp/");
                             mMedialibrary.forceParserRetry();
-                        else if (PreferenceManager.getDefaultSharedPreferences(MediaParsingService.this).getBoolean("auto_rescan", true))
+                        } else if (PreferenceManager.getDefaultSharedPreferences(MediaParsingService.this).getBoolean("auto_rescan", true))
                             reload(null);
                         else
                             exitCommand();



More information about the Android mailing list