[Android] Restore initial delay for scan notification

Geoffrey Métais git at videolan.org
Wed Apr 5 15:12:15 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr  5 14:21:31 2017 +0200| [e740b0655c79403110c3bb5686219a1863e73736] | committer: Geoffrey Métais

Restore initial delay for scan notification

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

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

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 83babfd..606b4fc 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -129,6 +129,9 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
             VLCApplication.runBackground(new Runnable() {
                 @Override
                 public void run() {
+                    synchronized (this) {
+                        mLastNotificationTime = System.currentTimeMillis();
+                    }
                     mMedialibrary.setup();
                     String[] storages = AndroidDevices.getMediaDirectories();
                     for (String storage : storages) {



More information about the Android mailing list