Skip to content
Snippets Groups Projects
Commit 3fbf9eaa authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Pass service context to init medialibrary

parent c835ccb2
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment