[Android] Do not force notification on ML idle callback

Geoffrey Métais git at videolan.org
Tue Jul 25 14:13:51 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul 25 14:13:01 2017 +0200| [1ea8b5a1c05fa5a1ef383bf36d61342f930bdc21] | committer: Geoffrey Métais

Do not force notification on ML idle callback

This restores the 1s delay before showing notification

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

 vlc-android/src/org/videolan/vlc/MediaParsingService.java | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 993a39958..12a289ef2 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -89,11 +89,6 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
                             return;
                         }
                     }
-                    synchronized (MediaParsingService.this) {
-                        if (mLastNotificationTime != -1L)
-                            mLastNotificationTime = 0L;
-                    }
-                    showNotification();
                     break;
             }
         }
@@ -235,7 +230,6 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
                                         .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
                                         .putExtra(EXTRA_PATH, device));
                             }
-
                         }
                         mMedialibrary.start();
                         mLocalBroadcastManager.sendBroadcast(new Intent(VLCApplication.ACTION_MEDIALIBRARY_READY));



More information about the Android mailing list