[Android] Unban whatsapp folder on upgrade

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


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

Unban whatsapp folder on upgrade

> https://code.videolan.org/videolan/vlc-android/commit/4d0ad9e37a26f2269fb2dd5be8949459cb20e7b5
---

 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 81733f0a5..928a8c844 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -246,9 +246,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