[Android] No need to force a medialibrary reload on startup
Geoffrey Métais
git at videolan.org
Wed Apr 19 17:32:12 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 19 16:06:35 2017 +0200| [32f1e5571e8e15ffc544955b932074136cb8091f] | committer: Geoffrey Métais
No need to force a medialibrary reload on startup
> https://code.videolan.org/videolan/vlc-android/commit/32f1e5571e8e15ffc544955b932074136cb8091f
---
vlc-android/src/org/videolan/vlc/MediaParsingService.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index f0ef24b..9e2e313 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -208,12 +208,8 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
for (String storage : AndroidDevices.getMediaDirectories())
mMedialibrary.discover(storage);
LocalBroadcastManager.getInstance(MediaParsingService.this).sendBroadcast(new Intent(VLCApplication.ACTION_MEDIALIBRARY_READY));
- if (!shouldInit) {
- if (upgrade)
- mMedialibrary.forceParserRetry();
- else
- reload(null);
- }
+ if (!shouldInit && upgrade)
+ mMedialibrary.forceParserRetry();
}
initOngoing = false;
}
More information about the Android
mailing list