[Android] Pass service context to init medialibrary
Geoffrey Métais
git at videolan.org
Fri Mar 10 16:45:23 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 10 16:23:41 2017 +0100| [3fbf9eaa105b4141d325ec7f23078de4af27ed17] | committer: Geoffrey Métais
Pass service context to init medialibrary
> https://code.videolan.org/videolan/vlc-android/commit/3fbf9eaa105b4141d325ec7f23078de4af27ed17
---
vlc-android/src/org/videolan/vlc/MediaParsingService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 05eb675..2ce2575 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -118,7 +118,7 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
boolean isMainStorage = TextUtils.equals(storage, AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
mMedialibrary.addDevice(isMainStorage ? "main-storage" : FileUtils.getFileNameFromPath(storage), storage, !isMainStorage);
}
- if (mMedialibrary.init(VLCApplication.getAppContext())) {
+ if (mMedialibrary.init(MediaParsingService.this)) {
LocalBroadcastManager.getInstance(MediaParsingService.this).sendBroadcast(new Intent(VLCApplication.ACTION_MEDIALIBRARY_READY));
String[] foldersList = mMedialibrary.getFoldersList();
if (foldersList.length == 0) {
More information about the Android
mailing list